前端项目监听8080端口

项目位于/usr/webfront/tcyx/
既是:root变量,是项目静态资源的绝对位置
index代表默认项目首页网页
第二个location是后端代理

servername 可以是外网域名,也可以是本地ip

nginx.conf配置文件:
nginx部署前端项目

启动nginx
可以了

相关文章:

  • 2022-12-23
  • 2021-06-14
  • 2021-05-23
  • 2022-12-23
  • 2023-02-02
  • 2021-09-19
  • 2021-10-09
猜你喜欢
  • 2021-11-26
  • 2021-11-23
  • 2021-07-15
  • 2022-12-23
  • 2021-09-28
  • 2022-12-23
相关资源
相似解决方案