Proxy cache for php site

António P. P. Almeida appa at
Sun Oct 16 00:50:15 UTC 2011

On 16 Out 2011 00h40 WEST, jmbennett at wrote:

> Hi,
> I'm trying to implement this style of proxy_cache config
> as a
> test locally, to stick in front of php sites.
> This is what I have:

Your config has a lot of cruft, meaning a lot of bad Yoda stuff.

But the main issue is that you're proxying to fastcgi not to another
HTTP server, hence the cache to be used is fastcgi cache, not proxy

Which apart from a few options has basically the same directives with
proxy replaced by fastcgi.

--- appa

More information about the nginx mailing list