www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@hyperreal.org
Subject Re: mod_userdir/805: multiple slashes before a ~user path are incorrectly handled
Date Mon, 07 Jul 1997 21:20:07 GMT
Synopsis: multiple slashes before a ~user path are incorrectly handled

State-Changed-From-To: feedback-closed
State-Changed-By: coar
State-Changed-When: Mon Jul  7 14:20:05 PDT 1997
State-Changed-Why:
The conclusion to which we've come is that the URLs are
not automatically equivalent, and therefore the base code
cannot automatically gobble initial slashes like this.
It's done when the target resource is a file, but only
then.  It could only be done as an external redirect.
So this won't be going into Apache.

However, you can accomplish the same end using the patch
I supplied earlier.  Even better, you can use mod_rewrite
to do it in a supported way that doesn't require you to
alter the source.  Try adding the following lines to your
configuration:

  RewriteEngine on
  RewriteCond ^//+~.*
  RewriteRule ^//+(~.*) /$1 [R]

This will cause mod_rewrite to elide the extra slashes and
redirect the request to the /~user URL on the target host.
You'll need to rebuild Apache with mod_rewrite included, of
course, if it isn't already part of your Configuration.

Thank you for using Apache, and posing such an interesting
problem!

#ken    :-)}
Severity-Changed-From-To: serious-non-critical
Severity-Changed-By: coar
Severity-Changed-When: Mon Jul  7 14:20:05 PDT 1997
Responsible-Changed-From-To: coar-apache
Responsible-Changed-By: coar
Responsible-Changed-When: Mon Jul  7 14:20:05 PDT 1997
Responsible-Changed-Why:
Putting back into the general pool.
%0


Mime
View raw message