redgun
01-09-2003, 08:30 PM
hi ,
i use redhat 7.3.
i have a simple.cgi file in the /var/www/cgi-bin directory. This file works fine when executed in terminal.But when i try to use the browser, i get an internal server error.i understand it has to do with configuring httpd.conf file. i have the flg required lines in my httpd.conf file,
ScriptAlias /cgi-bin/ "/var/ww/cgi-bin"
<Directory "/var/www/cgi-bin" >
Options ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
AddHandler cgi-script .cgi
i set the correct permissions for the file by chmod a+rx simple.cgi.
I would be gratefule if someone can help solve the problem. ThankYou.
Redgun
i use redhat 7.3.
i have a simple.cgi file in the /var/www/cgi-bin directory. This file works fine when executed in terminal.But when i try to use the browser, i get an internal server error.i understand it has to do with configuring httpd.conf file. i have the flg required lines in my httpd.conf file,
ScriptAlias /cgi-bin/ "/var/ww/cgi-bin"
<Directory "/var/www/cgi-bin" >
Options ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
AddHandler cgi-script .cgi
i set the correct permissions for the file by chmod a+rx simple.cgi.
I would be gratefule if someone can help solve the problem. ThankYou.
Redgun