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