[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Script Alias Directive in Apache



Hello,
Can someone tell me how to configure Appache to allow two separate users to
have their own cgi-bins?

I have read two books, the Apache docs and done some googling around and I
can't find an example of how to set up two different virtual hosts with
separate cgi-bins.

Can anyone give me the layout?

I have tried it:
Like this (the comment distinctly uses the plural: Aliases) (or does this
get chained? X = Y Y=Z?):

ScriptAlias /cgi-bin/ "/www/usr/public_html/cgi-local/"
ScriptAlias /cgi-bin/ "/www/usr2/public_html/cgi-local/"

With:

<Directory "/www/usr/public_html/cgi-local">
    AllowOverride None
    Options ExecCGI
    Order allow,deny
    Allow from all
</Directory>

<Directory "/www/usr2/public_html/cgi-local">
   AllowOverride None
   Options ExecCGI
   Order allow,deny
   Allow from all
</Directory>

And under the Virtual Host directives:

<VirtualHost 000.000.000.000>
   UseCanonicalName off
   ServerName www.usr.com
   DocumentRoot "/www/usr2/public_html"
   ScriptAlias /cgi-bin/ "/www/usr/public_html/cgi-local"
   ServerAdmin usr@his
</VirtualHousr2>

<VirtualHost 000.000.000.000>
   UseCanonicalName off
   ServerName www.usr2.com
   DocumentRoot "/www/usr2/public_html"
   ScriptAlias /cgi-bin/ "/www/usr2/public_html/cgi-local"
   ServerAdmin usr@his
</VirtualHousr2>

And both ways work but only for "usr"; anything asking for usr2/cgi-local
gets sent to usr/cgi-local

Best Wishes!
Mike Olds www.buddhadust.org




Reply to: