一定要用 alias. 不能两个root
作者:互联网
server {
listen 11605;
location / {
index index.nginx-debian.html;
root /var/www/html;
# proxy_pass http://localhost:5000;
# proxy_http_version 1.1;
# proxy_set_header Upgrade $http_upgrade;
# proxy_set_header Connection keep-alive;
# proxy_set_header Host $http_host;
# proxy_cache_bypass $http_upgrade;
}
location /reqs {
index index.nginx-debian.html;
alias /var/www/html/;
}
}
标签:index,set,http,header,alias,html,proxy,一定,root 来源: https://www.cnblogs.com/jx0109/p/15958766.html