nginx代理配置server { listen 80; server_name web1.chbo.com; location ~*\.(do|jsp)$ { proxy_pass http://web1.chbo.com:8080; #为后端服务器设置Real-IP参数 proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $host; }}tomcat虚拟主机配置项目的目录结构:[root@node01 data]# tree /data//data/├── logs│ ├── web1_access_log.2017-09-09.txt│ └── web1_access_log.2017-09-10.txt└── webapps └── ROOT ├── classes ├── index.jsp ├── lib ├── META-INF └── WEB-INF