httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Axel-Stéphane SMORGRAV <Axel-Stephane.SMORG...@europe.adp.com>
Subject RE: [users@httpd] mod_cache and conditional disabling
Date Thu, 25 Aug 2005 12:07:37 GMT
Uh, yeah. T'was the other way around.

Well: Houston, we've got a solution !

-ascs 

-----Original Message-----
From: Colm MacCarthaigh [mailto:colm@stdlib.net] 
Sent: Thursday, August 25, 2005 2:04 PM
To: users@httpd.apache.org
Subject: Re: [users@httpd] mod_cache and conditional disabling

On Thu, Aug 25, 2005 at 01:56:07PM +0200, Axel-Stéphane  SMORGRAV wrote:
> OK What about this, at the expense of an additional GET :
> 
> <VirtualHost www.foo.bar>
>    RewriteCond %{HTTP_COOKIE}	MYCOOKIE
>    RewriteRule ^(.*)$ http://cache.foo.bar$1 [P]
> 
>    ProxyPassReverse  / http://cache.foo.bar/
> 
>    ProxyPass / http://backend.foo.bar/ 
>    ProxyPassReverse  / http://backend.foo.bar/ </VirtualHost>
> 
> <VirtualHost cache.foo.bar>
>    ProxyPass / http://backend.foo.bar/ 
>    ProxyPassReverse  / http://backend.foo.bar/
> 
>    CacheEnable /
> </VirtualHost>

No, that still won't work, but almost :) If you have;

    RewriteCond %{HTTP_COOKIE}	!MYCOOKIE

The above will work, I think.

-- 
Colm MacCárthaigh                        Public Key: colm+pgp@stdlib.net

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message