how can i bind proxy_bind to interface name?

2016-03-14 Thread vps4
i use proxy_bind with interface ip address, it works fine but i need bind to interface name, for example: ppp0 but it not worked, how can i do? Posted at Nginx Forum: https://forum.nginx.org/read.php?2,265297,265297#msg-265297 ___ nginx mailing list ng

how can i set diffrent proxy cache time by diffrent uri

2016-02-15 Thread vps4
i tried to use like this server { set $cache_time 1d; if ($request_uri = "/") { set $cache_time 3d; } if ($request_uri ~ "^/other") { set $cache_time 30d; } location / { try_files $uri @fetch; } location @fetch { proxy_cache_val

proxy_store skip not 200

2015-11-26 Thread vps4
i setup proxy_store works fine, but has some problem when the backend response 404 or other result, proxy_store still save them for example: backend 1.jpg response 404 and html result, proxy_store will store it in disk how can i skip that results not 200 and verify by mime etc... thanks Posted a

proxy_pass use proxy

2015-11-15 Thread vps4
how can proxy_pass use socks5 proxy like 127.0.0.1:7070 Posted at Nginx Forum: https://forum.nginx.org/read.php?2,262839,262839#msg-262839 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

proxy_pass hide headers

2015-11-15 Thread vps4
backend has many X-* headers how can i hide them all with simple way? thanks Posted at Nginx Forum: https://forum.nginx.org/read.php?2,262837,262837#msg-262837 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: nginx 2,upstream question

2015-09-22 Thread vps4
nanaya Wrote: --- > Hi > > On Tue, Sep 22, 2015, at 04:59 PM, vps4 wrote: > > i have 2 backend server A & B, i want the upstream only works with > A, > > when A > > die then works with B, if A not die ,

Re: nginx 2,upstream question

2015-09-22 Thread vps4
no upstream backend { server A; server B backup; } this will works both of them i want only A B only works when A die Posted at Nginx Forum: http://forum.nginx.org/read.php?2,261712,261714#msg-261714 ___ nginx mailing list nginx@nginx.org http://mail

nginx 2,upstream question

2015-09-22 Thread vps4
i have 2 backend server A & B, i want the upstream only works with A, when A die then works with B, if A not die , only works with A how can i do Posted at Nginx Forum: http://forum.nginx.org/read.php?2,261712,261712#msg-261712 ___ nginx mailing list n