Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
CGI, vhosts, apache
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
cult hero
Apprentice
Apprentice


Joined: 13 Oct 2002
Posts: 186
Location: Las Vegas

PostPosted: Sat Jan 24, 2004 9:09 pm    Post subject: CGI, vhosts, apache Reply with quote

Okay... basically I'm trying to get qmailadmin running and I use vhosts.

I get a "forbidden" whenever I try to access the cgi-bin this way: http://whatever.domain/cgi-bin/qmailadmin (and I do have ScriptAlias set up in the vhosts.conf file)

However, when I ssh into the server and use http://localhost/cgi-bin/qmailadmin it works just fine. How to I let my virtual domains use cgi right? I set the gflobal ScriptAlias to the same thing as the one in vhosts (because I'm not using the default.
_________________
Repeat after me! This world is made of love and peace!
Back to top
View user's profile Send private message
shockme
n00b
n00b


Joined: 06 Jan 2004
Posts: 12
Location: Texas, USA

PostPosted: Sat Jan 24, 2004 9:27 pm    Post subject: Reply with quote

I don't know too much about this, but here's what works for me:

Code:

ScriptAlias /scripts/ /path/to/scripts/
<Directory /path/to/scripts>
    AllowOverride None
    Options ExecCGI

    Order allow,deny
    Allow from all
</Directory>


Setting up a ScriptAlias is only part of the solution. You have to also include the ExecCGI for that directory (unless you've done it globally, and I'm assuming you haven't done that).

However, it is odd that you can access it locally. What do the error logs say?
_________________
--
shock
Back to top
View user's profile Send private message
cult hero
Apprentice
Apprentice


Joined: 13 Oct 2002
Posts: 186
Location: Las Vegas

PostPosted: Sat Jan 24, 2004 10:13 pm    Post subject: Reply with quote

Heh...

I didn't even need the directory directive. However telling me to check the error logs was all I needed. I didn't have the trailing / in scriptalias. So it was looking for /cgi-binqmailadmin.

Thanks for the help even if I just needed someone to tell me the obvious!
_________________
Repeat after me! This world is made of love and peace!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum