为了账号安全,请及时绑定邮箱和手机立即绑定

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

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

梵蒂冈之花 2019-05-14 11:11:48
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 回答
  • 0 关注
  • 1324 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号