upstream proxy_vpst { ip_hash; # 实现 session 保持 server 127.0.0.1:7878; server 127.0.0.1:8383; } server { listen 80; server_name vpst; # 描述服务名称,辅助理解 #charset koi8-r; #access_log logs/host.access.log main; location ~ .(log_bg.jpg|top_title.jpg)$ { root D:Program-Filesapache-tomcat-6.0.41webapps; } location / { proxy_pass http://proxy_vpst; } }