server {
listen 80;
server_name localhost;
location /a {
root /test/nginx/a;
index index.html index.htm;
try_files $uri /index.html =404;
}
location /b {
root /test/nginx/b;
index index.html index.htm;
try_files $uri /index.html =404;
}
}
目前的思路我这样写是没有用的!
请问还有什么写法吗?
这样呢?