IDEA中在nginx上设置访问前端页面

孤人 提交于 2020-03-17 20:07:20

1、在nginx上进行配置

	location /web/{
		root  D:/fxglxt/src/main/resources/static;
		index index.html index.htm;
	}
	
	location /fxglxt/{
		proxy_pass  http://127.0.0.1:8083;
		
	}

  

 

 

 

 2、启动nginx

 3、访问路径:http://localhost:8080/fxglxt/web/index.html

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!