Reputation: 1
<VirtualHost *:80>
DocumentRoot "C:/wamp64/www/mysite/"
ServerName gamath
<Directory "C:/wamp64/www/mysite/">
AllowOverride All
Order Deny,Allow
Allow from all
Require local
</Directory>
</VirtualHost>
This is my hosts file
127.0.0.1 localhost
127.0.0.1 gamath
::1 localhost
::1 gamath
Upvotes: 0
Views: 8587
Reputation: 94682
Assuming you are using Apache 2.4 you should amend your httpd-vhosts.conf file like so
<VirtualHost *:80>
DocumentRoot "C:/wamp64/www/mysite/"
ServerName gamath
<Directory "C:/wamp64/www/mysite/">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>
as these are Apache 2.2 syntax
Order Deny,Allow
Allow from all
and
Require local
is Apache 2.4 syntax
If you actually want to allow access to your site form the universe then
Require all granted
Is the Apache 2.4 syntax
Some upgrade documentation https://httpd.apache.org/docs/current/upgrading.html
Also make sure you have uncommented the include of httpd-vhosts.conf in the httpd.conf
file
Also remember to restart Apache after you amend these file.
Upvotes: 0