
Manually Configuring cgi-bin Directories for Virtual Subhosts |
Many of your potential Virtual
Subhosting clientele will want cgi-bin access.... this can easily
be configured for a Virtual Subhost using the ScriptAlias
directive in the ~/www/conf/httpd.conf file on your
Virtual Server (or the ~/www/conf/srm.conf file, if you
Virtual Server was configured before Dec. 8, 1998). For example,
the www.yourname.org site has its own cgi-bin. This can easily be
added to the Virtual Subhost definition by simply using the
"ScriptAlias" directive as show below:
# point www.yourname.org and yourname.org to subdirectory yourname
<VirtualHost www.yourname.org yourname.org>
ServerName www.yourname.org
ServerAdmin webmaster@yourname.org
DocumentRoot /usr/local/etc/httpd/vhosts/yourname
ScriptAlias /cgi-bin/ /usr/local/etc/httpd/vhosts/yourname/cgi-bin/
</VirtualHost>
You will need to create the cgi-bin directory that you define using the ScriptAlias directive. You can create the directory by connecting to your Virtual Server and issuing the command:
|