Re: Wildcard proxy_cache_purge doesn't work

2014-05-31 Thread Kurt Cancemi
Hello, I think this is only supported in the commercial edition of nginx. You are using the ngx_cache_purge module see here , which doesn't support wildcard urls. --- Kurt Cancemi http://www.getwnmp.org On Sat, May 31, 2014 at 12:4

Wildcard proxy_cache_purge doesn't work

2014-05-31 Thread Ventzy
I have cache setup like this: proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=pagecache:10m; location / { ... proxy_cache pagecache; proxy_cache_key "$scheme://$host$request_uri"; } And it works as expected. I want cache purging and it works for single url, but not for wildcard url

Re: Nginx 1.7.0: location @php

2014-05-31 Thread Francis Daly
On Sat, May 31, 2014 at 06:31:09AM -0400, TECK wrote: Hi there, >> Perhaps the request that you made did not match the location blocks that >> you showed? > If that would be the case, the proper code posted earlier would not work, so > this is not the case. That's a reasonable assumption to mak

Re: Nginx 1.7.0: location @php

2014-05-31 Thread TECK
Francis, > I'm guessing that you may want something like > try_files i-dislike-macro-include @php; What you posted is some deprecated configuration available on Google. > Perhaps the request that you made did not match the location blocks that you showed? If that would be the case, the proper cod

Re: Nginx 1.7.0: location @php

2014-05-31 Thread Francis Daly
On Sat, May 31, 2014 at 01:59:18AM -0400, TECK wrote: Hi there, > > Answer #1: what does "does not work" mean? > When I process an URI request, it downloads the file instead of executing > the PHP code. Perhaps the request that you made did not match the location blocks that you showed? That's

Re: reverse proxy through upstream proxy

2014-05-31 Thread Francis Daly
On Fri, May 30, 2014 at 11:03:42PM -0400, pba wrote: Hi there, > I'm trying to configure nginx as a reverse proxy where the upstream traffic > has to go through another proxy (squid in this case) without success. I believe that nginx as a client can speak http to a http server, and http-over-ssl