mirror of
https://github.com/linuxserver/reverse-proxy-confs.git
synced 2025-08-24 07:05:38 -07:00
Auto redirect for non-standard port
Purpose to add function to auto redirect to non-standard port when server works on non-standard port condition.
This commit is contained in:
parent
7420ff6e3d
commit
16c4dc7edf
1 changed files with 1 additions and 0 deletions
|
@ -54,5 +54,6 @@ server {
|
|||
set $upstream_proto http;
|
||||
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
|
||||
proxy_set_header X-Scheme $scheme;
|
||||
proxy_redirect https://$host/ https://$host:selfdefined port number/;#here use your self-defined port number, so it could redirect to other link then still keep self defined port number.
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue