server {
listen 80;
server_name 1.goal.cn;
index index index.html index.htm index.jsp;
root /www/server/tomcat/1/ROOT/;
location / {
proxy_pass http://127.0.0.1:8080;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
access_log /www/wwwlogs/1.access.log;
}

server {
listen 80;
server_name 2.goal.cn;
index index index.html index.htm index.jsp;
root /www/server/tomcat/2/ROOT/;
location / {
proxy_pass http://127.0.0.1:8080;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
access_log /www/wwwlogs/2.access.log;
}

相关文章:

  • 2021-11-17
  • 2022-01-07
  • 2021-08-28
  • 2022-01-10
  • 2022-12-23
  • 2022-12-23
  • 2021-10-12
  • 2021-11-29
猜你喜欢
  • 2022-03-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-13
相关资源
相似解决方案