httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 52408] New: Directoryindex matching automatically redirects
Date Sun, 01 Jan 2012 20:28:28 GMT

             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
    Classification: Unclassified

When I have an .htaccess in the directory /test with the following contents:

DirectoryIndex index.html index.txt /cgibin/ 
RedirectPermanent /cgibin

Then when requesting this directory on the server (,
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.html index.txt 
RedirectPermanent /cgibin

Both index.html and index.txt will never be checked, even when they are present
(because we already have redirected).

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message