Browse Source

Update nginx.conf

MaxKey 3 years ago
parent
commit
4df2884d56
1 changed files with 2 additions and 0 deletions
  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;