为什么我的Nginx别名redirect不起作用(转到404)?
我有我的主要网站在x.com(@ /var/www/x.com/index.html ) # MAIN LOCATION location / { # First attempt to serve request as file, then # as directory, then fall back to displaying a 404. try_files $uri $uri/ =404; #autoindex on; proxy_set_header X-Real-IP $remote_addr; } 我想/ v2redirect到另一个本地目录(@ /var/www/x.com/v2/public/index.html ) # Redirect beta site location /v2 { alias /var/www/x.com/v2/public; } 这似乎应该工作,但相反,它是去我的404网站。 不知道这是否重要,但这里是我的根源: # […]