We are excited to announce that the IIS.NET Forums are moving to the new Microsoft Q&A experience. Learn more >

View Complete Thread
  • Re: IIS Reverse Proxy for Nextcloud - preserve HTTP_HOST

    May 06, 2019 10:53 AM|RockNLol|LINK

    I'll try to explain a little better:
    The nextcloud sync client, which is its own program, not a website, uses the public url of the nextcloud server to connect to it. To determine which url was used for the connection, it uses HTTP_HOST of the http header and saves it for future connections. Since nextcloud is only reverse proxied to via IIS it always gets the internally used url cloud.mydomain.local and not the originally used url cloud.mydomain.com, preventing connections from outside of the internal network.
    Yes, this is also a nextcloud issue, but none that is easy to fix on nextclouds side. Nevertheless I also asked a similar question on their forums, with no answer so far. For me it seems easier to fix this via IIS.

    Do you have an idea how I could send a different HTTP_HOST?