server{listen80;server_namelocalhost;location/a{root/test/nginx/a;indexindex.htmlindex.htm;try_files$uri/index.html=404;}location/b{root/test/nginx/b;indexindex.htmlindex.htm;try_files$uri/index.html=404;}}目前的思路我这样写是没有用的!请问还有什么写法吗?
添加回答
举报
0/150
提交
取消
