Proxy cache for php site

António P. P. Almeida appa at perusio.net
Sun Oct 16 02:53:53 UTC 2011


On 16 Out 2011 02h16 WEST, jmbennett at gmail.com wrote:

> Hi Appa,
>
>> Your config has a lot of cruft, meaning a lot of bad Yoda stuff.
>
> No doubt, any tips on cleaning up appreciated :)
>
>> 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.
>
> Ok, from scanning the docs, this seems about right, but nothing is
> being written to the cache dir, this is where I've got to:
> http://pastie.org/2703119

Try this: https://gist.github.com/1290446

--- appa



More information about the nginx mailing list