"403 Forbidden" error, not resolved even after trying common solutions
Posted by: aniket_s (---.48.192.199.dvois.com)
Date: August 23, 2011 10:12AM

When I try to access my hosted website by typing localhost in browser, everything works fine, but when I type my IP, I get the following error:
"You don't have permission to access / on this server."

I searched on the Internet a lot but none of the fixes already posted in the forums worked for me.I was trying to host a simple html website (I deleted index.php and made a index.html file for the purpose)

I had used earlier versions of Wamp server, but never had the problem. I used a third party uninstaller which removes all traces(remaining files as well as registry items) to reinstall, but no use, still getting that error.

I made the required changes to the phpmyadmin.conf file. Here's the modified file:

Alias /phpmyadmin "D:/WampServer/apps/phpmyadmin3.3.9/"

# to give access to phpmyadmin from outside
# replace the lines
#
# Order Deny,Allow
# Deny from all
# Allow from 127.0.0.1
#
# by
#
# Order Allow,Deny
# Allow from all
#

<Directory "D:/WampServer/apps/phpmyadmin3.3.9/">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Allow,Deny
Allow from all
</Directory>

I also modified the httpd.conf file in D:\WampServer\bin\apache\Apache2.2.17\conf directory, here is what I changed from the default value:

<Directory />
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>

Here is what I get in the error log: (IP, domain name withheld)
"[error] [client 000.00.000.000] client denied by server configuration: D:/WampServer/www/, referer: [myfreedomainname.co.nr];

Any help will be appreciated.

Options: ReplyQuote
Re: "403 Forbidden" error, not resolved even after trying common solutions
Posted by: yfastud (Moderator)
Date: August 24, 2011 02:32AM

No matter within or outside LAN access, you need to setup Access, DNS, and VH; Access for permission to connect to your Wamp PC, DNS to tie Domain(s) to your Wamp PC, and VH to host multiple Domains/Websites/IP's and even you have only 1 Domain/IP, you should use VH to set it up w/ the site you want to show up first on top and localhost on bottom and others in middle if having more than 1 site; w/ VH, other PC's, no matter w/i or outside LAN, can access/see websites/contents of that particular folder set for that particular VH on your wamp PC. If dont have real Domain, just skip DNS guide

To setup Access, follow this
[blog.jlbn.net]

To setup VH, follow this
[blog.jlbn.net]

To setup DNS, follow this
[blog.jlbn.net]

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote
Re: "403 Forbidden" error, not resolved even after trying common solutions
Posted by: aniket_s (---.48.192.116.dvois.com)
Date: August 27, 2011 09:43PM

yfastud Wrote:
-------------------------------------------------------
> No matter within or outside LAN access, you need
> to setup Access, DNS, and VH; Access for
> permission to connect to your Wamp PC, DNS to tie
> Domain(s) to your Wamp PC, and VH to host multiple
> Domains/Websites/IP's and even you have only 1
> Domain/IP, you should use VH to set it up w/ the
> site you want to show up first on top and
> localhost on bottom and others in middle if having
> more than 1 site; w/ VH, other PC's, no matter w/i
> or outside LAN, can access/see websites/contents
> of that particular folder set for that particular
> VH on your wamp PC. If dont have real Domain, just
> skip DNS guide
>
> To setup Access, follow this
> [blog.jlbn.net]
>
> To setup VH, follow this
> [blog.jlbn.net]
>
> To setup DNS, follow this
> [blog.jlbn.net]


My ports are configured correctly, I have just one PC, which acts as my web server, and I also have registered for a dynamic IP domain service, which works fine. When I type my IP in address bar of browser I get the error, so there must be some problems with configuration of wamp, I guess.....

Options: ReplyQuote
Re: "403 Forbidden" error, not resolved even after trying common solutions
Posted by: yfastud (Moderator)
Date: August 28, 2011 04:15AM

You as well as a lot of people have this issue because of the way you think. Even I've already posted that you need the combination of all 3 guides if having a domain name or at least 2 guides if no domain name and/or want to use IP instead, and what you think you're right is actually only a part of just 1 guide sad smiley

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote
Re: "403 Forbidden" error, not resolved even after trying common solutions
Posted by: stevenmartin99 (---.b-ras1.srl.dublin.eircom.net)
Date: August 28, 2011 08:05AM

you should not have touched the httpd.conf file and as a result you messed it up and now your getting
a forbidden error.

you should have followed the guides.

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote


Sorry, only registered users may post in this forum.