httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <jos...@slive.ca>
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
ScriptAlias.

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:
http://httpd.apache.org/docs-2.0/howto/cgi.html#troubleshoot

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

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message