mod_cache & content in vhost docroot

1 view
Skip to first unread message

Bezruk

unread,
May 9, 2008, 7:46:29 AM5/9/08
to mod_cache
Hello,

One more issue here.

I would like to run some mirror, so my vhost docroot will have some
content.
Is there any way force mod_cache to check if there uri exists locally
in docroot, before process with mod_proxy.
And if uri exist locally, do not cache it (otherwise we will have
duplicated content)

Thanks

Hongyu

unread,
May 9, 2008, 8:21:20 AM5/9/08
to mod_...@googlegroups.com
try to set cache.eanble = "disable" for your local mirrors, such as

$HTTP["url"] =~ "^/mymirror/" {
   cache.enable = "disable"  # disable modcache for http://url/mymirror/
}

Bezruk

unread,
May 9, 2008, 9:01:49 AM5/9/08
to mod_cache
Hello,
Yeah, but this is not a solution.

I will have main server and few mirros.
Mirrors will be synced with main twice a day.
If request comes to mirror and there is no such file, it must me
proxied to main site. Cached request will be stored for 12 hours for
example.
After 12 hours i will have requested file in my docroot and it should
be servers bypass of mod_cache

Such config is not possible?

Hongyu

unread,
May 9, 2008, 9:24:05 AM5/9/08
to mod_...@googlegroups.com
I don't think there has available solution by hand. But you need to patch mod_cache and mod_proxy sources by yourself to solve your problem
Reply all
Reply to author
Forward
0 new messages