httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matus UHLAR - fantomas <>
Subject Re: [users@httpd] Alias or ScriptAlias ?
Date Tue, 18 Jul 2006 14:11:18 GMT
On 18.07.06 11:48, Boyle Owen wrote:
> It is not a great idea to mix static and CGI content in the same
> directory since a simple misconfiguration can put your code on the web.

I don't think this is a problem. or, better said, such problem can appear
anywhere (e.g. just rename .php to something else)

> However, it can be done using SetHandler (see
> and Options
> ExecCGI.

I find AddHandler simpler and universal:

AddHandler cgi-script .cgi
Options ExecCGI

and it will work globally. If you want to enable/disable CGI's per-context,
you only need to put Options +-ExecCGI into VirtualHost/Directory/Location

> You also need "DirectoryIndex script.cgi" in that dir...

Or simply index.cgi and let user use proper name for the script...

(e.g. "DirectoryIndex index.var index.cgi index.html")

> You can also look at AddHandler
> ( to
> extend CGI to all .cgi files.

I wonder why didn't you start with this ;)
Matus UHLAR - fantomas, ;
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
42.7 percent of all statistics are made up on the spot. 

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