Forbidden You don't have permission to access / on this server [closed]
Found my solution thanks to Error with .htaccess and mod_rewrite
For Apache 2.4 and in all *.conf files (e.g. httpd-vhosts.conf, http.conf, httpd-autoindex.conf ..etc) use
Require all granted
instead of
Order allow,denyAllow from all
The Order and Allow directives are deprecated in Apache 2.4.
WORKING Method { if there is no problem other than configuration }
By Default Appache is not restricting access from ipv4. (common external ip)
What may restrict is the configurations in 'httpd.conf' (or 'apache2.conf' depending on your apache configuration)
Solution:
Replace all:
<Directory /> AllowOverride none Require all denied</Directory>
with
<Directory /> AllowOverride none# Require all denied</Directory>
hence removing out all restriction given to Apache
Replace Require local
with Require all granted
at C:/wamp/www/
directory
<Directory "c:/wamp/www/"> Options Indexes FollowSymLinks AllowOverride all Require all granted# Require local</Directory>
Solution is just simple.
If you are trying to access server using your local IP address and you are getting error saying like Forbidden You don't have permission to access / on this server
Just open your httpd.conf file from (in my case C:/wamp/bin/apache/apache2.2.21/conf/httpd.conf
)
Search for
<Directory "D:/wamp/www/">.........</Directory>
Replace Allow from 127.0.0.1
to
Allow from all
Save changes and restart your server.
Now you can access your server using your IP address