httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <>
Subject Re: [users@httpd] HTML pages in CGI directories
Date Sun, 06 Apr 2003 22:29:42 GMT

On Sun, 6 Apr 2003, Sandy Keathley wrote:

> Can someone tell me the trick to allowing HTML pages to display
> from a cgi-bin directory (a ScriptAlias directory)?

Assuming you had
ScriptAlias /cgi-bin/ /usr/local/apache2/cgi-bin/

Remove that and replace it with
Alias /cgi-bin/ /usr/local/apache2/cgi-bin/
<Directory /usr/local/apache2/cgi-bin>
Options ExecCGI
AddHandler cgi-script cgi pl exe

Add whatever extensions you need to execute to the AddHandler line.  Any
file that doesn't match one of those extensions will not be executed.


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message