Hi,
I'm wondering if I can have a vhosted site that has two cgi-bin's... one
that is public, one for that user's private scripts.
I need to have the private one for a webshell type app I came upon and
love... but I also want to provide a public cgi-bin with a group of
standard scripts (formmail, guestbook, counter...).
I have to use the user and group directives for my vhosts because of the
webshell script:
<VirtualHost IP.add.re.ss>
User web1
Group vhost
ServerName sub.my.domain.com
DocumentRoot /home/httpd/web1/public_html
AccessFileName .htaccess
ScriptAlias /private-cgi/ /home/httpd/privatecgis/web1/
#what I'm thinking should work:
#ScriptAlias /cgi-bin/ /home/httpd/cgi-bin/
</VirtualHost>
I also have a directory defined as:
<Directory /home/httpd/cgi-bin/>
Options ExecCGI
</Directory>
I'm guessing either I just can't do this... or I'm missing some Options
or override or directive or something (I know I don't even know half of
them). The reasons I want to do this... security (currently, users don't
have access to their private cgi-bin via ftp chroot and no telnet
access), ease of administration (central-izes all the cgi's), disk
space.
Currently, I think what the problem is, due to the User and Group
directives, public cgi's are being executed as the User instead of as
the server, so it doesn't do anything.
I am able to get to public scritps with the ScriptAlias set, but they
give me an error. They work if I take out the User and Group Directives
though.
So.... what do I have to do to get it to work?
--
Josh I.
ps- please no e-mails... I don't read my deja-news e-mails.... and I
don't a real news client on this machine so I'm stuck with deja (which
isn't too bad).
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.