Re: [users@httpd] mod_rewrite and mod_cache

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

 



Vincent Bray wrote:

I have an httpd config with a rewrite rule with a proxy;
RewriteRule   ^/path1/(.*) http://localhost:8080/path2$1 [P]
Why use rewrite for this? ProxyPass & ProxyPassReverse would be better.

Ah. I see, for some reason I didn't think mod_proxy would handle the mapping which simplfies things nicely.
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.
I find "LogLevel debug" very helpful in determining why mod_cache
isn't doing it's thing.
Thanks, the rewrite urls were being caught by a mem_cache earlier in the config.

Thanks again.

Tom



noodl




---------------------------------------------------------------------
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