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 10768] New: - 'AddHandler cgi-script cgi' does not specifically find cgi file extension
Date Sat, 13 Jul 2002 08:40:09 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10768>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10768

'AddHandler cgi-script cgi' does not specifically find cgi file extension 

           Summary: 'AddHandler cgi-script cgi' does not specifically find
                    cgi file extension
           Product: Apache httpd-2.0
           Version: 2.0.39
          Platform: PC
               URL: http://nagoya.apache.org
        OS/Version: Linux
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: mod_mime
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: josmhinkle@netscape.net


When the directive "AddHandler cgi-script cgi" is used, and presumably similar 
constructions, matches will be made on filenames containing ".cgi" and not just 
files with the extension ".cgi" (or .pl, or other).

This was discovered when a CGI program was compiled from source named 
"compiled.cgi.c" and the executable output was "compiled.cgi".  When both are 
visible on an index page delivered from Apache, clicking on "compiled.cgi.c" 
should cause it to deliver a plain text document.  Instead, Apache attempts to 
run it as a cgi program.

The compilation itself runs as expected because Apache properly delivers 
"compiled.cgi" to the handler.

Somewhere (mod_mime ?) an improper match is made on file extensions.  I couldn't 
find it myself.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message