如何在nginx上的同一域名及端口上配置两个打包后的react应用?

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;
}
}
目前的思路我这样写是没有用的!请问还有什么写法吗?
梵蒂冈之花
浏览 1325回答 0
0回答
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

JavaScript