我想用nginx实现alias虚拟目录,然后用proxy转发,但为什么总是404not found?求大神解救,代码如下:
location /mytest {
alias /test/mytest;
index index.html index.php;
proxy_pass http://localhost:8008;
}
location /mytest {
alias /test/mytest;
index index.html index.php;
proxy_pass http://localhost:8008;
}
proxy_set_header host www.example.com;