I'm trying to make rewrite rules to my nginx server. I have the following configuration on the IIS side: IIS URL Rewrite config That part works fine, When I go to (ex. www.website.com) I get the page from my nginx webserver but just the default page not the site. if I put www.website.com in my host file and send it to the NGINX server then I get the correct site, so my guess is that for some reason NGINX doesn't get the host url/name from the IIS server or doesn't understand the request.
previously each site ran on a different port on the NGINX server but that was unacceptable, I don't know why the did it but they can't expect me to just open 20+ ports from the dmz to the LAN for this all traffic has to go over port 80.
Currently we have 1 routing server in the dmz this one routes to the IIS or NGINX servers based on url rules from and to IIS work fine as expected but NGINX does't work the way we need it, now it works because every website runs on a different port which is insane.
Is there something that we can do to fix this, is it just a limitation of one of the servers. without the IIS rewrite NGINX behaves as we like and it servers the correct site for every url, when we add the rewrite in between we can only see the default page.