Re: Homepage cache and cookies

2016-03-24 Thread john_smith77
Thanks for the info. I have removed the redundant config. I suppose what I am really getting at is that I would like Set-Cookie to never be cached with a cache MISS so that the cached cookie values are then not there for subsequent HITS. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,2

Re: simple auth question for nested sections

2016-03-24 Thread B.R.
Jonathan, please read Maxim's answer, which is the one going the right way. My hypothesis proved to be wrong. --- *B. R.* On Thu, Mar 24, 2016 at 8:35 PM, Jonathan Vanasco wrote: > > On Mar 24, 2016, at 1:27 PM, Maxim Dounin wrote: > > In most cases this is more or less obvious when directives a

Re: simple auth question for nested sections

2016-03-24 Thread Jonathan Vanasco
On Mar 24, 2016, at 1:27 PM, Maxim Dounin wrote: > In most cases this is more or less obvious when directives are not > inherited, though docs can be a bit more clear on this. What is not-obvious / confusing is that the *_pass items are not inherited... but their associated directives from the

Re: simple auth question for nested sections

2016-03-24 Thread B.R.
Thanks Maxim for your lights! Please discard all the crap I wrote before and apologies to Jonathan, then. :oP --- *B. R.* On Thu, Mar 24, 2016 at 6:27 PM, Maxim Dounin wrote: > Hello! > > On Thu, Mar 24, 2016 at 06:17:44PM +0100, B.R. wrote: > > > I guess the docs logic is reversed: it is expli

Re: simple auth question for nested sections

2016-03-24 Thread Maxim Dounin
Hello! On Thu, Mar 24, 2016 at 06:17:44PM +0100, B.R. wrote: > I guess the docs logic is reversed: it is explicitely stated when a > directive inherits, which must be that way because not considered the > default behavior (although I am not in Igor's head...). No, by default all directives are i

Re: simple auth question for nested sections

2016-03-24 Thread B.R.
I guess the docs logic is reversed: it is explicitely stated when a directive inherits, which must be that way because not considered the default behavior (although I am not in Igor's head...). This product uses a different paradigm that 'minimal configuration lines', and Igor has nothing against

Re: How do I install module Rate Limit

2016-03-24 Thread B.R.
The ngx_http_limit_req_module module is built as part of nginx core: every nginx binay has it. You thus do not need to do anything. --- *B. R.* On Thu, Mar 24, 2016 at 4:47 AM, roslui12 wrote: > Hello friends, could you help me? as I

Re: Homepage cache and cookies

2016-03-24 Thread B.R.
The proxy_cache_key defines which key differentiate any cache object. By using $cookie_name in the string, the *value* of the cookie 'name' will be taken as part of the key. If multiple clients have the same combination of variables value (specifically, for cookie, presence, no presence or same val

Homepage cache and cookies

2016-03-24 Thread john_smith77
I am trying to cache the home page to a site. I am only caching the home page. If I put in a condition to check for cookies existing before caching, everything works as expected, but there is a high BYPASS rate due to the client not having the cookies the first time they visit the site. Once I took