Apache 2.2.6 Getting 403 Forbidden on all pages
Intro
This is the issue about getting 403 Forbidden Error on all pages when you are working on localhost. I have used Virtual Host to simulate multiple sites on my computer. So I get 403 Forbidden on all pages. I tried for many solutions couldn't find anything much relevant. After sometime tweaking here is the solution or rather the problem I found.
...
The error forbidden arises due to
<Directory Directory Path, eg C:/www/>
# many things here ... :)
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>
If you have virtual hosts, you will have to allow permission to access those directories too which contain the sites. For eg. if you have another site on
C:/anotherwww/, you should include
<Directory Directory Path, eg C:/anotherwww/>
Options Indexes FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride All
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>
Thats all
Restart Apache Server.
Your Problem is solved.
:)
1 comments:
you just need to find&change "deny from all" to "allow from all" in your httpd.conf
everything will work as expected
Post a Comment