You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2012/01/01 21:28:28 UTC
DO NOT REPLY [Bug 52408] New: Directoryindex matching automatically
redirects
https://issues.apache.org/bugzilla/show_bug.cgi?id=52408
Bug #: 52408
Summary: Directoryindex matching automatically redirects
Product: Apache httpd-2
Version: 2.4-HEAD
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: mod_dir
AssignedTo: bugs@httpd.apache.org
ReportedBy: jthijssen@noxlogic.nl
Classification: Unclassified
When I have an .htaccess in the directory /test with the following contents:
DirectoryIndex index.html index.txt /cgibin/index.pl
RedirectPermanent /cgibin http://www.google.com/cgibin/index.pl
Then when requesting this directory on the server (http://example.org/test/),
will automatically trigger a redirection to google, when no index.html or
index.txt is found.
It looks like when apache does a ap_sub_req_lookup_uri() in
mod_dir.c:fixup_dir(), it will automatically redirect. Even though it makes
sense, it's not what you would expect.
When changing the directoryindex to this:
DirectoryIndex /cgibin/index.pl index.html index.txt
RedirectPermanent /cgibin http://www.google.com/cgibin/index.pl
Both index.html and index.txt will never be checked, even when they are present
(because we already have redirected).
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 52408] Directoryindex matching automatically
redirects
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52408
--- Comment #1 from Eric Covener <co...@gmail.com> 2012-01-01 20:59:31 UTC ---
IMO not a bug but I don't think either way is especially intuitive. I am
leaning towards re-marking as enhancement (to let the user choose if non-2xx
counts)
More opinions appreciated.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org