httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Slupski <>
Subject [users@httpd] AddHandler .cgi & why a.cgi.txt is executed
Date Sat, 18 Dec 2004 10:57:21 GMT


Is this normal than when my configuration has (standard) directive:

AddHandler cgi-script .cgi

Files that has other extension, but '.cgi' somewhere in filename
(eg. a.cgi.txt or a.cgi.html) are considered to be cgi scripts as well?

Having this file with chmod 0644 I'm getting following error_log:
[...] [error] [...] (13)Permission denied: exec of '/home/follow/bin/WWW/a.cgi.txt' failed
[...] [error] [...] Premature end of script headers: a.cgi.txt

Having it 0755 its being sucesfully executed as normal cgi.

If I rename the file to 'a.txt', its contents is displayed (as normal text/plain file).

I don't think there is anything unusual in my configuration that could affect this.

Tested on:

Fedora Core release 3

Debian GNU/Linux 3.1
httpd 1.3.31-6

Jan Slupski

   _  _  _  _  _____________________________________________
   | |_| |\ |  S L U P S K I    
 |_| | | | \|                

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message