nginx代理配置备份

补充:

代理对文件大小的限制,

server {
client_max_body_size 100M;
listen 9096;
server_name gate.chaohuoyy.com;

location / {
proxy_pass http://127.0.0.1/data/index.html; 
}

location /svn {
proxy_pass http://192.168.1.95:8080/svn; 
}

}

[root@izm5ehhtn7tzwk2lvy85nlz ~]# cat /etc/nginx/servers/iproxy.svn.conf

server {

扫描二维码关注公众号,回复: 6350621 查看本文章

    listen       9095;

    server_name  ifire.com;

 

    location /47 {

        proxy_pass   http://127.0.0.1/data/index.html; 

    }

 

    location /57 {

        proxy_pass   http://127.0.0.1:8000/data/index.html;

    }

 

 

    location / {

        proxy_pass   http://127.0.0.1:9095; 

    }

 

    location /svn {

        proxy_pass   http://127.0.0.1:9095/svn; 

    }

 

    

 

}

猜你喜欢

转载自www.cnblogs.com/xingchong/p/10976092.html