View Single Post

  #1 (permalink)  
Old 06-12-2008
Dan Rumney
 
Posts: n/a
Default Serve HTML file from /cgi-bin

My Apache configuration has the following directives:

ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"

<Directory "/var/www/cgi-bin">
AllowOverride None
Options FollowSymLinks
Order allow,deny
Allow from all
</Directory>

I'd like to be able to server a single HTLM file from this directory
(index.html) to catch requests to the URL http://<servername>/cgi-bin/

However, Apache seems unhappy about this... probably because it's trying
to execute my html file instead of serving it verbatim.

Are there any configuration changes that I need to make to allow this,
or am I going to have to alter my approach and create an index.pl file,
instead?

Thanks