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 35700] New: - SetHandler breaks DirectoryIndex (error 404)
Date Tue, 12 Jul 2005 10:12:46 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=35700>.
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=35700

           Summary: SetHandler breaks DirectoryIndex (error 404)
           Product: Apache httpd-2.0
           Version: 2.0.54
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: All
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: heilong@bluebottle.com


This config worked ok in apache 1.3:
    <Directory "/var/www/localhost/htdocs/forum">
        DirectoryIndex list
        SetHandler application/x-httpd-php
    </Directory>
I've got several PHP files without extension in that directory, and use
SetHandler to make apache run them with mod_php. The problem is, apache 2.0
tries to run the directory itself with mod_php (as seen by error log: [Fri Jul
01 19:35:11 2005] [error] [client 127.0.0.1] attempt to invoke directory
'/var/www/localhost/htdocs/forum/' as script, referer: http://localhost/)

I've worked around this by the following config, but the bug should be fixed.

    <Directory "/var/www/localhost/htdocs/forum">
        DirectoryIndex list
        <Files "?*">
            SetHandler application/x-httpd-php
        </Files>
    </Directory>

This works because Files "?*" doesn't match the directory itself.

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