Prevent nginx caching empty pages?

2013-07-24 Thread John Moore
Hi, I'm trying to diagnose a problem we have on a rather complex system with an nginx acting as a remote proxy server, where what appears to be a completely empty response is being returned, seemingly from the nginx cache. It's early days yet in my troubleshooting, so this may not actually be

Re: Simple question about proxy cache

2013-03-22 Thread John Moore
On 22/03/13 14:11, Maxim Dounin wrote: > This looks like valid regular expression (try pcretest if unsure), but > from maintainability point of view I would recommend to use multiple > normal prefix or exact match locations instead of trying to combine > them into a single regexp. Yes, you're

Re: Simple question about proxy cache

2013-03-22 Thread John Moore
On 22/03/13 11:43, Maxim Dounin wrote: > Hello! > > On Fri, Mar 22, 2013 at 11:18:50AM +0000, John Moore wrote: > > [...] > >> Actually, there is one final tweak I'd like. There are a number of >> different locations which I'd like to use the proxy cache f

Re: Simple question about proxy cache

2013-03-22 Thread John Moore
On 22/03/13 11:18, John Moore wrote: > > Actually, there is one final tweak I'd like. There are a number of > different locations which I'd like to use the proxy cache for. I cannot > repeat for each location the block where the cache log is defined (it > rightly complains

Re: Simple question about proxy cache

2013-03-22 Thread John Moore
On 18/03/13 11:21, John Moore wrote: > On 17/03/13 23:08, Maxim Dounin wrote: >> Hello! >> >> On Sun, Mar 17, 2013 at 08:08:39PM +, John Moore wrote: >> >>> I've used nginx as a reverse proxy server for a long while but I've not >>> tried

Re: Simple question about proxy cache

2013-03-18 Thread John Moore
On 17/03/13 23:08, Maxim Dounin wrote: > Hello! > > On Sun, Mar 17, 2013 at 08:08:39PM +0000, John Moore wrote: > >> I've used nginx as a reverse proxy server for a long while but I've not >> tried out the proxy cache until today, and I have to say I'm a li

Simple question about proxy cache

2013-03-17 Thread John Moore
I've used nginx as a reverse proxy server for a long while but I've not tried out the proxy cache until today, and I have to say I'm a little bit confused by what I'm seeing in the cache log, and I'm wondering whether I've set things up correctly. My requirements are actually pretty simple. I h