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 Tue, 06 Sep 2005 14:23:43 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 alex@weej.com  2005-09-06 16:23 -------
ok:

file:///home/alex/public_html/testsite/.htaccess:

    RewriteEngine On
    RewriteRule ^(.*?)$ url-handler.php

when I request http://localhost/~alex/testsite/blahblah, I am told, by *Apache
through the error page*, that "The requested URL
/home/alex/public_html/testsite/url-handler.php was not found on this server."

This "URL" would correspond to
http://localhost/home/alex/public_html/testsite/url-handler.php, which would map
to
file:///var/www/localhost/htdocs/home/alex/public_html/testsite/url-handler.php
which doesn't exist. (My apologies, I got this wrong before.)

Seeing as the CWD is file:///home/alex/public_html/testsite, I am expecting
apache to find file:///home/alex/public_html/testsite/url-handler.php and not
file:///var/www/localhost/htdocs/home/alex/public_html/testsite/url-handler.php.

Yes, I can set the RewriteBase explicitly to /~alex/testsite but this should be
implied anyway, and as far as I can tell it works exactly as expected on any
virtual path that doesn't contain a ~.

Is this irregular behaviour or is this just a user error?

Thanks

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