Proxy cache for php site

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


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

> Hi,
>
> I'm trying to implement this style of proxy_cache config
> http://fennb.com/microcaching-speed-your-app-up-250x-with-no-n as a
> test locally, to stick in front of php sites.
>
> This is what I have: http://pastie.org/2703119

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
cache.

http://wiki.nginx.org/HttpFcgiModule#fastcgi_cache

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

--- appa



More information about the nginx mailing list