nginx代理模式

地址: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";
}

}

 

posted @ 2019-04-02 20:34  zty_2018  阅读(151)  评论(0编辑  收藏  举报