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 52408] New: Directoryindex matching automatically redirects
Date Sun, 01 Jan 2012 20:28:28 GMT
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


Mime
View raw message