Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

scriptalias and cgi problems

Status
Not open for further replies.

rninja

Technical User
Apr 11, 2001
381
US
I have set-up about 5 virtualhosts. The first uses the default cgi-bin directory set in httpd.conf (/usr/local/apache/cgi-bin). The other vhosts are set to use cgi directories as subdir's of their documentroots.
Here is the example:

<VirtualHost 63.64.69.293>
ServerName ServerAlias *.mydomain.com
DocumentRoot /home/httpd/mydomain
ScriptAlias /cgi-bin/ &quot;/home/httpd/mydomain/cgi&quot;
</VirtualHost>

I have been trying to setup scripts in these vhost cgi folders and everytime I try to access the files such as a guestbook, I get a forbidden error. When I try that same file in the default apache cgi-bin, It works perfectly.
What could I be missing?
cgi folders are set to default perm (755). Files are set to default perms (755).

Thanks In Advance!

Rninja
 
I actually got this one figured out.
All I had to do was add:
<Directory &quot;/home/httpd/mydomain/cgi&quot;>
+ExecCGI
</Directory>

and that.... solved my problem.


Rninja
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top