Firstly, please follow all the steps mentioned in this post of mine: http://soluzione08.blogspot.in/2012/02/creating-virtual-hosts-on-apache.html and then add this line 'Require all granted' as below for all your virtual host setup.The changes should be made to the file 'httpd-vhosts.conf'
<Directory "c:/vhosts/sandbox.wp">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</Directory>
Note: The above code is an example for a Name-based Virtual Host. For and IP-based Virtual Host you will have to replace the Name with the IP which usually is "127.0.0.1" on a localhost.
<Directory "c:/vhosts/sandbox.wp">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</Directory>
Note: The above code is an example for a Name-based Virtual Host. For and IP-based Virtual Host you will have to replace the Name with the IP which usually is "127.0.0.1" on a localhost.
Geeez thanks! This saved me a lot of research ;)
ReplyDelete