I am using the latest httpd from CVS.

I can't get mod_disk_cache to cache anything but 301's.

I suspect it's something related to the headers I (don't) send.

$ lwp-request -e -d -S http://nntp.x.perl.org/
GET http://nntp.x.perl.org/ --> 200 OK
Connection: close
Date: Tue, 27 Aug 2002 11:34:58 GMT
Via: 1.0 nntp.x.perl.org
Server: Apache/1.3.26 (Unix) mod_perl/1.27
Content-Length: 1896
Content-Type: text/html; charset=ISO-8859-1


My httpd.conf looks like the following,

LoadModule cache_module modules/mod_cache.so
LoadModule disk_cache_module modules/mod_disk_cache.so

[...]

<VirtualHost *>
  servername nntp.x.perl.org
  serveralias nntp.perl.org

  CacheOn on
  CacheRoot /home/web/front/cache/
  CacheSize 50000
  CacheDefaultExpire  43200
  CacheEnable disk /
  CacheDirLevels 5
  CacheDirLength 3

  RewriteEngine On
  RewriteCond  %{REQUEST_URI}    !^/js/
  RewriteCond  %{REQUEST_URI}    !^/proxy-status
  RewriteRule (.*) http://localhost:8222$1 [P]
</VirtualHost>

[...]

 - ask

-- 
ask bjoern hansen, http://www.askbjoernhansen.com/ !try; do();

Reply via email to