Skip to content

Commit bc882b6

Browse files
committed
use proxy_prefix for proxy_redirect to avoid the port problem
1 parent 2a18e07 commit bc882b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nginx.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ http {
191191
}
192192

193193
# handle proxy sending redirection requests
194-
proxy_redirect ~^(https?://.+) /main/$1;
194+
proxy_redirect ~^(https?://.+) $proxy_prefix/main/$1;
195195

196196
sub_filter_once off;
197197
# sub_filter_types text/html; already text/html by default but leaving it here for clarity

0 commit comments

Comments
 (0)