Re: Map is not matching correctly against upstream custom header

2016-06-02 Thread Gabriel Arrais
Maxim Dounin wrote in post #1183769: > Hello! > > On Thu, Jun 02, 2016 at 07:51:06PM +0200, Gabriel Arrais wrote: > >> 1 0; >>proxy_cache_bypass $no_cache;^M >>} >> >> I've already tried the map with $sent_http_x_my_cust

Map is not matching correctly against upstream custom header

2016-06-02 Thread Gabriel Arrais
Hi, I'm trying to configure my proxy cache settings based in a response custom header, using proxy_no_cache and proxy_cache_bypass directives. First question: is it possible at all? Second question: If it is, why this map is always hitting the default value? map $sent_http_x_my_custom_header $

Cache TTL set by the client

2015-03-17 Thread Gabriel Arrais
Hi, Is it possible somehow to let the cache ttl (in proxy_pass caching) be defined by the client? Unfortunately it looks like proxy_cache_valid doesn't accept variables as input. Thank you in advance. -- Posted via http://www.ruby-forum.com/. ___ n

Re: Use /g (global) regex modifier in map

2014-08-08 Thread Gabriel Arrais
Maxim Dounin wrote in post #1154708: > Hello! > > On Fri, Aug 08, 2014 at 08:27:54PM +0200, Gabriel Arrais wrote: > >> >> ?fq=xx&sm=0&PageNumber=1&fq=yy >> >> return $filtered_args; >> } >> '; >> proxy

Re: Use /g (global) regex modifier in map

2014-08-08 Thread Gabriel Arrais
Maxim Dounin wrote in post #1154691: > Hello! > > On Fri, Aug 08, 2014 at 05:06:55PM +0200, Gabriel Arrais wrote: > >> The same problem would occur using the variable $args right? > Sure. > >> Example: >> ?fq=xx&sm=0&PageNumber=1 an

Re: Use /g (global) regex modifier in map

2014-08-08 Thread Gabriel Arrais
Hi Maxim, first thank you very much for your answer! Maxim Dounin wrote in post #1154662: > Hello! > ... > Note well that even if you'll be able to filter arguments, there > is an additional problem of order of the arguments. > The same problem would occur using the variable $args right? > Simp

Use /g (global) regex modifier in map

2014-08-07 Thread Gabriel Arrais
Is it possible somehow to use the global modifier in a regex map match? I'm trying to use the map directive to filter the query string leaving my proxy_cache_key with only known parameters. For the first test I've tried to use a map like below to just catch all parameters without really filtering

Re: Errors using HttpUseridModule

2014-01-17 Thread Gabriel Arrais
Francis Daly wrote in post #1133402: > On Thu, Jan 16, 2014 at 11:15:55PM +0100, Gabriel Arrais wrote: >> Francis Daly wrote in post #1133390: > > Hi there, > >> > Are they all coming from a particular browser version, for example? >> >> For now, I can&#x

Re: Errors using HttpUseridModule

2014-01-16 Thread Gabriel Arrais
Thank you for the answer Francis! Francis Daly wrote in post #1133390: > On Thu, Jan 16, 2014 at 09:41:25PM +0100, Gabriel Arrais wrote: > > Hi there, > >> We're receiving a lot of errors lately concerning the format of the >> userid cookie. > > Is there any pat

Re: Errors using HttpUseridModule

2014-01-16 Thread Gabriel Arrais
Thank you for the answer Francis! >Is there any pattern to the errors that you can see? > >Are they all coming from a particular browser version, for example? For now, I can't see any pattern and the error logs (how they are formatted now) does not help me, they don't pass the user-agent

Errors using HttpUseridModule

2014-01-16 Thread Gabriel Arrais
sent too short userid cookie "sid=Cvwkcept: */*", client: xx.xx.xx.xx, server: x, request: "GET /xx HTTP/1.0", host: "xxx", referrer: "http://xxx"; And I'm using this configuration for userid userid on; userid_name sid; u

Re: HttpUseridModule

2014-01-16 Thread Gabriel Arrais
Flavio, I'm trying to do the same as you. Have you found any solution? I was thinking in change the expiration by myself setting the cookie again, but I think that this is ugly =/ Thank you, Gabriel Arrais -- Posted via http://www.ruby-foru