首页 > 其他 > 详细

nginx代理模式

时间:2019-04-02 21:26:05      阅读:153      评论:0      收藏:0      [点我收藏+]

地址:https://www.cnblogs.com/jiangwangxiang/p/8481661.html

 

代理服务:

server {
listen 80;
server_name nczfgjj.com www.nczfgjj.com www.nczfgjj.gov.cn zfgjj.nanchong.gov.cn;

access_log /home/www/wsdt.nczfgjj.com/logs/access_log;
charset gbk;

location / {
index index.php index.html index.htm;
fastcgi_index index.php;
proxy_pass http://172.168.10.212:89;
proxy_set_header Host $host;
proxy_set_header Accept-Encoding "none";
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Via "nginx";
}

}

 

nginx代理模式

原文:https://www.cnblogs.com/ztyc/p/10560030.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!