0
我有一个nginx的sites-enabled/default
配置:403禁止nginx的位置
server {
listen 80;
server_name localhost;
location/{
proxy_pass http://localhost:3000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
location ~ /anotherroute {
alias /home/anotherroute/public;
index index.html;
}
}
当我访问http://myipaddress/anotherroute
它工作正常,但是当我做http://myipaddress/anotherroute/yetanotherroute
它回来作为403 forbidden
。
我该如何解决这个问题?