一定要用 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/;
}

}

posted @ 2022-03-03 10:56  南城编程Die师  阅读(34)  评论(0)    收藏  举报