in reply to index.cgi or index.html

I agree with itub. If you are using apache and it was compiled with the mod_rewrite module, a rule such as this in an .htaccess file would allow it to appear you're browsing to the index.html but you would actually be at the cgi file.
RewriteRule ^index\.html$ /cgi-bin/index.cgi [L]