httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tamer Embaby <Tamer.Emb...@itworx.com>
Subject RE: [users@httpd] RE: Clearing cache selectively on Apache + mod_cache
Date Mon, 01 Dec 2008 15:49:05 GMT
Karim,

Please let me know if it works for you.

Tamer

-----Original Message-----
From: Karim Zaki [mailto:Karim.Zaki@itworx.com]
Sent: Monday, December 01, 2008 3:58 PM
To: users@httpd.apache.org
Subject: RE: [users@httpd] RE: Clearing cache selectively on Apache + mod_cache

Yeah in this instance there are 2 interfaces on the box. I'll use the internal interface,
which is not accessible from the Internet anyway...so

<VirtualHost internal-ip>
CacheIgnoreCacheControl Off
</VirtualHost>

Let's see how that works.

-----Original Message-----
From: Eric Covener [mailto:covener@gmail.com]
Sent: Monday, December 01, 2008 3:50 PM
To: users@httpd.apache.org
Subject: Re: [users@httpd] RE: Clearing cache selectively on Apache + mod_cache

On Mon, Dec 1, 2008 at 8:42 AM, Tamer Embaby <Tamer.Embaby@itworx.com> wrote:
> Eric,
>
> So using 2 vhosts would be:
>
> # External vhost
> <VirtualHost *:80>
>        ServerName www.example.com
>        CacheRoot /path/to/cache
>        Cache disk /url
>        CacheIgnoreCacheControl On
>        CacheMaxExpire 86400
>        CacheDefaultExpire 86400
> </VirtualHost>
>
> # Internal vhost
> <VirtualHost *:80>
>        ServerName cache-internal.example.com
>        CacheRoot /path/to/cache
>        Cache disk /url
>        CacheMaxExpire 86400
>        CacheDefaultExpire 86400
> </VirtualHost>
>
> And then when requiring a "push" when the content changes we access
> the internal http://cache-internal.example.com/url/path/to/invalidate
> with "Cache-Control" HTTP header set to "max-age=0,must-revalidate"?

Yes, with the caveat some might prefer to have it only respond on a
different interface (even though I said name vhost before) or maybe
even require authentication of some kind.

--
Eric Covener
covener@gmail.com

---------------------------------------------------------------------
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


---------------------------------------------------------------------
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


---------------------------------------------------------------------
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