View previous topic :: View next topic |
Author |
Message |
owdawg n00b
Joined: 03 May 2002 Posts: 7
|
Posted: Sun Jun 30, 2002 10:15 pm Post subject: Apache "Forbidden" when using vhosts |
|
|
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 |
|
|
delta407 Bodhisattva
Joined: 23 Apr 2002 Posts: 2876 Location: Chicago, IL
|
Posted: Sun Jun 30, 2002 10:20 pm Post subject: |
|
|
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 |
|
|
owdawg n00b
Joined: 03 May 2002 Posts: 7
|
Posted: Sun Jun 30, 2002 10:35 pm Post subject: |
|
|
yep that was the problem
thanks a lot |
|
Back to top |
|
|
whit Tux's lil' helper
Joined: 26 Oct 2002 Posts: 121 Location: VT
|
Posted: Wed Dec 18, 2002 4:44 pm Post subject: A little confusion in the configuration files |
|
|
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 |
|
|
|