Welcome! Log In Create A New Profile

Advanced

Disable Port removing on rewrite

September 16, 2016 10:40AM
Hello,
during the conversion of my web servers at home I ran into some problems.
We are running more than one web servers at home and a few ports are open in the router for them.
So the standard ports (80, 443) are blocked for other server in our network.
One NGINX Server listens on port 80, and our router routes port 8081 from outside to port 80 locally.
On any rewrite NGINX strips the port from the URL. This is the server because I get a connection to the server and then I got rewritten.
Is there any config entry to disable the port remove on rewrite? I already tried “port_in_redirect off”, without success.
I already posted this question on SO and the NGINX forum, but I think in the mailing list i have more success.
Link to StackOverflow Question: http://stackoverflow.com/questions/39519136/prevent-nginx-to-remove-the-port
Link to NGINX forum: https://forum.nginx.org/read.php?11,269603

Currently i am using almost the default config, view SO for the config.

Thank you in anticipation!
- greetings from Germany
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Disable Port removing on rewrite

Gurken2108 September 16, 2016 10:40AM

Re: Disable Port removing on rewrite

Francis Daly September 16, 2016 01:36PM

Re: Disable Port removing on rewrite

Gurken2108 September 16, 2016 02:06PM

Re: Disable Port removing on rewrite

Francis Daly September 16, 2016 03:02PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 139
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready