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

And that would eliminate the little backdoor you were talking about,
Karim?

Regards,
Tamer

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

On Mon, Dec 1, 2008 at 8:00 AM, Karim Zaki <[EMAIL PROTECTED]> wrote:
> That sounds like a great idea, but how do I configure mod_cache differently 
> for the vhost? Would I configure it within the vhost scope? If so, that 
> configuration would need to point to the same cache store, but without the 
> CacheIgnoreCacheControl, right?

CacheIgnoreCacheControl works in vhost context.

--
Eric Covener
[EMAIL PROTECTED]

---------------------------------------------------------------------
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: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
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: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to