Re: Proxy Bypass only specific IP

2014-06-24 Thread Maxim Dounin
Hello! On Tue, Jun 24, 2014 at 06:38:59AM -0400, TheBritishGeek wrote: > I have tried > > if ($remote_addr ~ "^(1.1.1.1|a:b:c:d::1:2)$") > { > proxy_cache_bypass $http_secret_header; > } > > But is does not pass testing > > nginx: [emerg] "proxy_cache_bypas

Re: Proxy Bypass only specific IP

2014-06-24 Thread TheBritishGeek
I have tried if ($remote_addr ~ "^(1.1.1.1|a:b:c:d::1:2)$") { proxy_cache_bypass $http_secret_header; } But is does not pass testing nginx: [emerg] "proxy_cache_bypass" directive is not allowed here Posted at Nginx Forum: http://forum.nginx.org/read.php?2,2

Re: Proxy Bypass only specific IP

2014-06-23 Thread itpp2012
if ($remote_addr ~ "^(10.10.*.*)$") { } Posted at Nginx Forum: http://forum.nginx.org/read.php?2,251124,251126#msg-251126 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Proxy Bypass only specific IP

2014-06-23 Thread TheBritishGeek
I am looking for a way for allow that proxy_cache_bypass but only on a secific hostname and client IP address. My current setup is as follows: location ~* \.(gif|jpg|jpeg|png|wmv|avi|mpg|mpeg|mp4|wmv|js|css|mp3|swf|ico|flv|json|csv|txt|svg|ttf|eot|otf|cff|afm|lwfn|ffil|fon|pfm|pfb|woff|std|pro|xs