It may be helpful to check your httpd.conf file - /etc/httpd/conf/httpd.conf
. I'm going to guess this is NOT the problem, because this is standard configuration. But you need to be sure. First look for DocumentRoot. It should be
DocumentRoot "/var/www"
Then look for ScriptAlias. It should be
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
Personally, I like seeing just /cgi/index.cgi in the browser address bar, so I have
ScriptAlias /cgi/ "/var/www/cgi-bin/"
It's not necessary, but if you want
www.yoursite.com/cgi-bin to load index.cgi then you should include index.cgi on the DirectoryIndex line
DirectoryIndex index.html index.htm index.cgi index.php
I included index.php because I see you have the php module enabled, so it might as well be there in case you run any php applications.
And, as svqmuc says, be sure this is there
<Files ~ "\.cgi$|\.pl$">
SetHandler cgi-script
</Files>
which tells Apache that files ending in .cgi or .pl are cgi-scripts. You can remove
|\.pl$
if you don't ever save your Perl scripts with that extension.