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;
}
}
it is useless for me to write this way of thinking at present!
is there any other way to write it?