Hi,
I wroe a sample cgi program on Apache.But it is not working..!!
I had done the following steps.
1) Edited the httpd.conf file
Directory "/var/www/cgi-bin">
# AllowOverride None
Options +ExecCGI
#Order allow,deny
#Allow from all
</Directory>
ScriptAlias /cgi-bin/ /var/www/cgi-bin/
2)Put the sample script on /var/www/cgi-bin/
3) Change the permissions of /var/www/cgi-bin/ and its contents to 755
But it is not working!!
The error messege displayed by the browser is (when the URL is
http://server.com/cgi-bin/
Access forbidden!
You don't have permission to access the requested directory. There is either no index document or the directory is read-protected.
If you think this is a server error, please contact the webmaster
Error 403
When typing the URL as
http://server.com/cgi-bin/sample.pl
the error messege is
Object not found!
The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.
If you think this is a server error, please contact the webmaster
Error 404
What is the problem ??? Help me