#当访问www.kazihuo.com/sichuan-user-te时,跳转到http://10.1.93.61:7005/sichuan-user
server { listen 80; server_name 218.80.250.99 qyj.kazihuo.com www.sheyecare.com www.kazihuo.com www.kazihuo.com; location /sichuan-user-te/ { proxy_pass http://10.1.93.61:7005/sichuan-user/; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } }
=================================================================
#当访问http://218.80.250.99/healthcloud-doctor-web时,跳转到http://10.1.65.133:7003/healthcloud-doctor-web
server { listen 80; server_name 218.80.250.99 qyj.kazihuo.com www.sheyecare.com www.kazihuo.com www.kazihuo.com; location /healthcloud-doctor-web { proxy_pass http://10.1.65.133:7003; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } }