Reputation: 1
So I installed WAMP on Windows 7 and port-forwarded my Privat IP and I tried using my Public IP, but no luck.It's just giving me this error: Forbidden
You don't have permission to access / on this server.I tested it out with localhost and 127.0.0.1 and it worked, but with my Public Ip it dosen't.Please Help me!
Upvotes: 0
Views: 6215
Reputation: 94662
To allow your Apache server to be accessed from the internet you need to tell Apache that it is allowed to accept connections from any IP address
Edit httpd.conf
using the wampmanager menus links.
Find this snippet in the config file
# onlineoffline tag - don't remove
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
Allow from ::1
Allow from localhost
And as you are using Apache 2.4.x change it to
# onlineoffline tag - don't remove
Require all granted
Upvotes: 1
Reputation: 463
It is because of the settings in you httpd.conf file. To correct the problem, follow the steps-
Upvotes: 1