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 2002/07/13 10:40:09 UTC
DO NOT REPLY [Bug 10768] New: -
'AddHandler cgi-script cgi' does not specifically find cgi file extension
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