Welcome! Log In Create A New Profile

Advanced

wrong port gets sent to back client

Posted by frefal 
wrong port gets sent to back client
June 26, 2020 07:25AM
I have a configuration where I do a nat from port 443 -> nginx port 22500 where it then is doing proxy_pass.

The issue I have now, is that randomly it seems that the client who visits https://url gets redirected to https://url:22500 which dont work as only port 443 is allowed. It seems it does not always force the client to return to 22500 though.

I have done the following to try and force nginx to send the client to port 443 via "proxy_set_header Host $host:443;" but this has no effect.

Any tip is greatly welcomed, thank you!


nginx version: nginx/1.14.0 (Ubuntu).
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 172
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready