[users@httpd] LocationMatch and RewriteRule

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

 



I think I may have missed something, so can I ask if someone can explain
where I've gone wrong.

I have the lines:

RewriteLog "/var/log/apache2/rewrite.log"
RewriteLogLevel 3

<LocationMatch "^/zope$" >
    RewriteEngine On
    RewriteRule "^/zope$" http://SERVER.NETWORK/zope/ [R]
</LocationMatch>

To try to redirect request for the url /zope to /zope/.  This is needed
because the zope server doesn't add the trailing '/' on the urls.

These are the only rewrite rules in the config.

It isn't working.  I get a 404 instead of the site.

I get the following in the Rewrite.Log:

192.168.xxx.yyy - - [03/Sep/2005:11:24:47 +0100]
[SERVER.NETWORK/sid#80beb20][rid#865d0a8/initial] (3) [per-dir ^/zope$/]
applying pattern '^/zope$' to uri '/var/www/zope'
192.168.xxx.yyy - - [03/Sep/2005:11:24:47 +0100]
[SERVER.NETWORK/sid#80beb20][rid#865d0a8/initial] (1) [per-dir ^/zope$/]
pass through /var/www/zope

Now this seems a bit whacky to me, as it looks as if Apache2 is trying to
apply the rewite which should be URI based, to a directory which doesn't
exist.

Is my interpretation correct?  Am I right in thinking this is wrong?

I'm running Apache2 v 2.0.54 on Debian Linux 3.1 (stable), kernel
2.4.27-2-686.

Thanks
David




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