Syntax: port_in_redirect on | off;
Default:
port_in_redirect on;
Context: http, server, location
server{
listen 2443;
server_name 10.1.1.1;
server_name_in_redirect on;
port_in_redirect off;
设置为on时
https://192.168.137.3/download->https://10.1.1.1:2443/download/
设置为off时:
https://192.168.137.3/download->https://10.1.1.1/download/