qi923701
Powerful_Current
2017-10-31 05:00

一个tomcat下的webapp下部署了多个项目,那么nginx的server怎么配置??

1
  • server
  • java
  • nginx
  • tomcat

#项目名称(project1,project2...)
upstream tomcat_server1 {
server 192.168.33.113:8080;
}
server {
listen 80;
server_name www.test1.com;
location / {
proxy_pass http://tomcat_server1;
index /project1/toIndex;
}

}

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

1条回答