httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Devendra Singh <devendrasi...@indiamart.com>
Subject [users@httpd] mod_disk_cache not working in Apache-2.0.52
Date Mon, 18 Oct 2004 11:08:12 GMT
Hi,

I have noticed that mod_disk_cache is not working in Apache-2.0.52.

While it works in Apache-2.0.50 with same configuration.

It has been confirmed seeing the error_log entries with "LogLevel debug"

My config Options are as below:

         ./configure \
           --prefix=/usr/local/apache_front \
           --with-mpm=worker \
           --enable-so \
           --enable-cgi \
           --enable-info \
           --enable-mod_status \
           --enable-usertrack \
           --enable-mime-magic \
           --enable-rewrite=shared \
           --enable-speling=shared \
           --enable-nonportable-atomics=yes \
           --enable-cache \
           --enable-disk-cache \
           --enable-mem-cache \
           --with-deflate \
           --with-rewrite \
           --enable-proxy \
           --enable-proxy-connect \
           --enable-proxy-http \
           --disable-proxy-ftp \
           --enable-headers \
           --enable-setenvif

The relevant httpd.conf is as:

<IfModule mod_cache.c>
    <IfModule mod_disk_cache.c>
      #Physical Path of the Cache.
      CacheRoot /opt/cache2
      #Length of Directory Names (Default is 1).
      CacheDirLength 2
      #Number of Sub-directories created (Default is 3).
      CacheDirLevels 3
      #Largest File to Cache in Bytes (1048576 = 1 MB).
      CacheMaxFileSize 5242880
      #Smallest file to Cache in Bytes.
      #CacheMinFileSize 20481
      CacheMinFileSize 5
      #Cache Size in KB (Default is 5 KB : 6291456 KB = 6144 MB = 6 GB)
      CacheSize 6291456
    </IfModule>
    CacheIgnoreCacheControl on
    CacheIgnoreNoLastMod on
    CacheGcInterval 1
    CacheLastModifiedFactor 0.1
    #FileETag INode MTime Size
    # The maximum time in seconds to cache a document, 259200=3 days.
    CacheMaxExpire 259200
    # The default duration in seconds to cache a document when no expiry 
date is specified, 86400=1 day.
    CacheDefaultExpire 86400
</IfModule>

And the relevant Virtual Host entry is as follows:
<VirtualHost xx.xxx.xxx.xxx>
ServerAlias abcd.com www.abcd.com
ServerName www.abcd.com
ServerAdmin webmaster@abcd.com
DocumentRoot /home/www/public_html/abcd
ServerPath /abcd
RewriteEngine On
CacheDisable /cgi
CacheDisable /includes
CacheEnable disk /
RewriteCond %{SERVER_PORT} ^25$
RewriteRule /* - [F]
RewriteRule ^(.*)\/$ $1/index.html [P]
RewriteRule \.(gif|jpg|png|txt|css|js|ico|swf)$ - [last]
RewriteRule ^/(.*)$ http://abcd.com:8080/$1 [proxy]
ProxyPassReverse / http://abcd.com:8080/
</VirtualHost>

Any Pointers Please !!


______________________________________________________
Devendra Singh
IndiaMART InterMESH Limited
(Global Gateway to Indian Market Place)
B-1, Sector 8, Noida, UP - 201301, India
EPABX : +91-120-2424945, +91-120-3094634, +91-9810646342
Fax: +91-120-2424943
http://www.indiamart.com
http://www.indiangiftsportal.com
http://www.indiantravelportal.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


Mime
View raw message