nginx absolute_redirect off:容器端口映射场景下重定向不再丢失外部端口
This commit is contained in:
@@ -6,6 +6,9 @@ server {
|
|||||||
|
|
||||||
charset utf-8;
|
charset utf-8;
|
||||||
|
|
||||||
|
# 容器内监听 80、对外映射 18091:绝对重定向会丢外部端口,改发相对 Location
|
||||||
|
absolute_redirect off;
|
||||||
|
|
||||||
access_log /var/log/nginx/access.log;
|
access_log /var/log/nginx/access.log;
|
||||||
error_log /var/log/nginx/error.log;
|
error_log /var/log/nginx/error.log;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user