[users@httpd] mod_rewrite and <Location>

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

 



Hi, how does mod_rewrite interact with <Location> directives? I'm trying to do a url to url rewrite, but want the resulting url to go through the <Location> directives, it seems that apache skipped the <Location> part, and directly looks for the file:
 
RewriteRule /foo.html /bar/test
 
<Location /bar>
  blabla, it's handled by mod_jk to tomcat
</Location>
 
when I ask for /foo.html, it gives me "404 Not found: /bar/test", the rewritelog also shows it's looking for the file name "/bar/test" rather than
applying the <Location> part. How can I accomplish this?
 
Thanks.
 
Z.
 

[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