Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

wrong port gets sent to back client

$
0
0
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).

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>