[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: Apache help



On Wed, 20 Sep 2000, chetan dutta wrote:

> how can can i provide each user with his own cgi-bin
> directory? do i just create a cgi-bin directory in public_html dir
> & change attributs of files in the dir?

1. Create a directory called cgi-bin in each public_html 
2. Add the following to your httpd.conf file.

<Directory /home/*/public_html/cgi-bin> 
# assumes that all home dirs are in /home
Options ExecCGI 
SetHandler cgi-script 
</Directory>

Any executable file (regardless of filename extension) placed in a cgi-bin
directory can be invoked as a cgi script like this
http://servername/~user/cgi-bin/whatever

bye :)
Anmol