httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <>
Subject Re: [users@httpd] cgi-bin trouble from hell
Date Wed, 19 Feb 2003 18:22:06 GMT

On Wed, 19 Feb 2003, SigurĂ°ur Bjarnason wrote:
> from httpd.conf file
>     ScriptAlias /cgi-bin/ /home/bb/bb19c/www/cgi-bin/
>     #
>     # "/var/apache/cgi-bin" should be changed to whatever your ScriptAliased
>     # CGI directory exists, if you have that configured.
>     #
>     #<Directory /home/bb/bb19c/www/cgi-bin>#
>     #    AllowOverride None                           #
>     #    Options ExecCGI                              #  This is what i tried before
>     #    AddHandler cgi-script .sh .pl              #   and that did not work either
>     #    Order allow,deny                              #
>     #    Allow from all                                   #
>     #</Directory>                                        #
>     <Directory /cgi-bin>
>      Options ExecCGI
>      AddHandler cgi-script .sh .pl
>     </Directory>

The first one is much closer to correct than the second one.  <Directory>
takes file-system paths, not web-paths.  In addition, the Options ExecCGI
and AddHandler are not necessary since they are both implied by the

To find the solution to your problem, the first thing you need to do if
figure out exactly what is going on.  A debugging guide is here:

A question to start:  When your browser asks if you want to download, have
you tried actually downloading the contents and seeing what is inside?  If
the source-code of the cgi script is inside, then you haven't activated
cgi correctly.  If the output of the cgi script is inside, then you are
sending the wrong mime-type or you have encoutered the MSIE content-type


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