Welcome! Log In Create A New Profile

Advanced

Re: Simple question about proxy cache

J2R
March 22, 2013 07:40AM
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 about duplication). So I have to define it at a server
> level instead. If I do this, though, then EVERY request for that server
> ends up being logged, even if there is no cache in force for the request
> location (i.e., the location has either 'proxy_cache off' or no
> proxy_cache definition. Is there a way I can configure things so that
> the only requests which are logged are ones from locations where a proxy
> cache is in force?
>
>

Sorry, please pretend I never wrote that! My problem was simply that I
was defining the log_format in each location, hence the duplication. I
can DEFINE it once at the server level and USE it multiple times at the
location level without a problem.

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Simple question about proxy cache

J2R March 17, 2013 05:18PM

Re: Simple question about proxy cache

Maxim Dounin March 17, 2013 07:10PM

Re: Simple question about proxy cache

J2R March 18, 2013 07:22AM

Re: Simple question about proxy cache

J2R March 22, 2013 07:20AM

Re: Simple question about proxy cache

Maxim Dounin March 22, 2013 07:44AM

Re: Simple question about proxy cache

J2R March 22, 2013 07:40AM

Re: Simple question about proxy cache

J2R March 22, 2013 08:26AM

Re: Simple question about proxy cache

Maxim Dounin March 22, 2013 10:12AM

Re: Simple question about proxy cache

J2R March 22, 2013 11:40AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 282
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready