[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Shared CGI-BIN
- Subject: Re: [cobalt-users] Shared CGI-BIN
- From: "Thomas Schmitz" <tschmitz@xxxxxxxxxxxxxxxxx>
- Date: Mon Jan 29 21:11:11 2001
- Organization: SIC Internet Consulting
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
> I'd like to make available some cgi scripts to all users on a RaQ4
> from a shared area. Search of the archives hasn't lead to much
> more that I think it can be done.
Hi Thom,
on our RAQ2 we have the following setup for a server-wide CGI-BIN directory (running a form-mail
program, compiled in C):
/home/sites/home:
dr-xr-xr-x 2 nobody home 1024 Jan 28 14:24 cgi
/home/sites/home/cgi:
-rwxr-xr-x 1 admin home 40698 Dec 31 02:27 yourcgiscript
Add the following line to /etc/httpd/conf/httpd.conf:
ScriptAlias /cgi/ /home/sites/home/web/cgi/
BTW: It's also a good idea to add the following lines:
<Directory /home/sites/*/web/cgi>
Options -Indexes
</Directory>
<Directory /home/sites/*/web/cgi-bin>
Options -Indexes
</Directory>
This global CGI-directory also works for sites which have cgi-support turned off (no "Options
ExecCGI" or cgi-wrap-addhandler).
Regards,
Thomas