httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 36509] - mod_rewrite incorrectly expands userdir URLs?
Date Wed, 07 Sep 2005 04:35:25 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=36509>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=36509





------- Additional Comments From nd@perlig.de  2005-09-07 06:35 -------
Ok, so it's a user error ;-)

The request is processed as follows (unimportant parts left out):
1. run mod_userdir -> resolve ~alex/testsite/blah to
/home/alex/public_html/testsite/blah
2. find the .htaccess files
3. execute mod_rewrite found in .htaccess, which strips the .htaccess path from
the requested *filename* before matching the regexes
(/home/alex/public_html/testsite/foo -> foo), applies the rules (foo ->
urlhandler.php) and prefixes the result with rewritebase if the result is not
already an absolute url path (begins with a slash) (urlhandler.php ->
<prefix>/urlhandler.php)

If explicitly set, the prefix is clear. If not set (from RewriteBase docs):
| By default this prefix is the corresponding filepath itself.

so, the last transformation is urlhandler.php ->
/home/alex/public_html/testsite/urlhandler.php, which is treated as new URL. An
internal redirect to this url is issued and you get the 404.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message