- GNU/Linux (Mandrake)
- Apache2 2.0.48
I've borrowed the subject from Bernhard Georg Enders, who had the same
problem and solved it by cleaning the CacheRoot.
My server has dozens of VirtualHost, and has been working fine for more
than a year. Our webs are mainly PHP created, say, dynamically served.
Some virtuals started to suffer a "Directory index forbidden by rule"
error. The error appeared *sometimes* when requesting the virtual root;
I mean, the error happened not for every (identical!) request.
Sometimes it worked, and and sometimes it didn't.
I want to stress that the configuration was fine; I had the
"index.html"
files in place, with the right permissions and mode, etc.
After reading Georg's posting I decided to disable the mod_disk_cache
module. As I said, we mainly serve dinamically created contents.
And everything has been fine since then.
Some facts I realized while doing my "investigation":
- the error always appeared on statically served virtuals
- mod_disk_cache is experimental (see apache.org)
- CacheSize 256 in my configuration, but...
- CacheRoot was full of cached headings and pages!
(so a 'tmpwatch HOURS $CacheRoot' cron.daily job is advisable)
That's all.
Hope it helps somebody.
---
Xavier Armengou i Sala
>> Stay informed about: Apache 2.0.48 disk_cache_module: Directory index forbidden..