[users@httpd] mod_rewrite and mod_cache

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I have an httpd config with a rewrite rule with a proxy;
RewriteRule   ^/path1/(.*) http://localhost:8080/path2$1 [P]

and a disk cache like so;
CacheRoot /tmp/cache
CacheSize 32768
CacheEnable disk /

Now my index page "index.html" gets cached, but nothing that is handled by the rewrite rule below path1 or path2.

Is there any way around this? My initial though was that mod_cache would write files, that because of the mod_rewrite rule would not be found. But at the moment I can't even get it to write a cache file.

This is my response header from a file that is NOT cached, which I feel should be;

Date: Tue, 11 Jul 2006 18:39:06 GMT
Server: Apache/2.0.46 (Red Hat)
Last-Modified: Thu, 15 Sep 2005 11:41:54 GMT
Content-Length: 134
Content-Type: text/html; charset=UTF-8
Etag: "2805b-86-f6b20480"
Accept-Ranges: bytes
Connection: close

200 OK

(the etag is always the same for this file)

Cheers,

Tom H






---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux