nginx bad 400

 1     server {
 2         listen       80;
 3         server_name  product.yuffie132.edu;
 4 
 5         location /static {
 6             root   html;
 7         }
 8 
 9         location / {
10             root   html;
11             index  index.html index.htm;
12             proxy_pass  http://yu_web_132;
13             proxy_set_header Host $http_host;
14         }
15         error_page   500 502 503 504  /50x.html;
16         location = /50x.html {
17             root   html;
18         }
19     }

13行,location块 proxy_set_header Host $http_host;

posted on 2021-02-26 09:29  五月の花  阅读(64)  评论(0编辑  收藏  举报

导航