Explorar o código

Update nginx.conf

MaxKey %!s(int64=3) %!d(string=hai) anos
pai
achega
4df2884d56
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      docker/docker-nginx/nginx.conf

+ 2 - 0
docker/docker-nginx/nginx.conf

@@ -4,6 +4,8 @@ server {
     listen       80;
 
     server_name  localhost;
+	
+	proxy_set_header host $host; # 转发请求时将请求的域名一起转发
 
     location / {
         root   /usr/share/nginx/html;