<VirtualHost 111.111.111.111>
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /d3/foo/htdocs
ServerName foo.Net
ErrorLog logs/foo_error.log
TransferLog logs/foo_access.log
ScriptAlias /cgi-bin/ /d3/foo/cgi-bin/
Alias /common /home/common
</VirtualHost>

This is from one of my httpd.conf files for apache.  You can put most
any directive in a virtualhost stanza, including <Directory lfsakdjl>
and security, more as well including Options 

This is at apache.org's docs if you need more info.

--Jerry


Chris Blessing wrote:
> 
> This is in regards to Apache 1.3.4 and virtual hosting...
> 
> How would I go about setting up individual cgi-bin/ dirs per
> VirtualHost?  For example, I have bleh.foo.com (ServerRoot
> /home/bleh/html/) and I want to be able to go to
> bleh.foo.com/cgi-bin/foo.cgi (which would be /home/bleh/html/cgi-bin/).
> However I do not want to enable the system-wide CGI access directive
> because I want to constrain the cgi access to the users' cgi-bin/
> directories.  Can I ass a ScriptAlias in the
> <VirtualHost>...</VirtualHost> section of the httpd.conf file?  Any help
> would be appreciated!  Thanks in advance...
> 
> Chris
> --
> Chris Blessing
> [EMAIL PROTECTED]
> http://webguy.dCaff.com
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to