Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Apache "Forbidden" when using vhosts
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
owdawg
n00b
n00b


Joined: 03 May 2002
Posts: 7

PostPosted: Sun Jun 30, 2002 10:15 pm    Post subject: Apache "Forbidden" when using vhosts Reply with quote

I keep getting 403 "Forbidden" when trying to access directories outside of /home/httpd/htdocs and ~/public_html, I checked my directory permissions by switching them between 644 and 755 I even changed ownership to apache but i keep getting 403 "Forbidden" on directories such as /home/username/test1.mydomain.com and /home/username2/test2.mydomain.com.
Back to top
View user's profile Send private message
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Sun Jun 30, 2002 10:20 pm    Post subject: Reply with quote

From /etc/apache/conf/commonapache.conf:

Code:

#Restricted set of options
<Directory />
  Options -All -Multiviews
  AllowOverride None
  Order deny,allow
  Deny from all
</Directory>


Add another directory entry for each area you want into /etc/apache/conf/apache.conf, preferably without "Deny from all". ;)
Back to top
View user's profile Send private message
owdawg
n00b
n00b


Joined: 03 May 2002
Posts: 7

PostPosted: Sun Jun 30, 2002 10:35 pm    Post subject: Reply with quote

yep that was the problem

thanks a lot
Back to top
View user's profile Send private message
whit
Tux's lil' helper
Tux's lil' helper


Joined: 26 Oct 2002
Posts: 121
Location: VT

PostPosted: Wed Dec 18, 2002 4:44 pm    Post subject: A little confusion in the configuration files Reply with quote

If you change DocumentRoot in apache.conf and don't go to the section in the midst of commonapache.conf which says "This should be changed to whatever you set DocumentRoot to. " and enter the revised root there, you'll run into this permissions problem unless you've removed the restriction below - one or the other is needed. What tricked me is that commonapache.conf says of DocumentRoot at the top of it "DO NOT MODIFY THIS ONE, USE apache.conf", without mentioning that there is a setting in commonapache.conf below that still needs to be modified if you change DocumentRoot.

delta407 wrote:
From /etc/apache/conf/commonapache.conf:

Code:

#Restricted set of options
<Directory />
  Options -All -Multiviews
  AllowOverride None
  Order deny,allow
  Deny from all
</Directory>


Add another directory entry for each area you want into /etc/apache/conf/apache.conf, preferably without "Deny from all". ;)
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