I can't get virtual hosts to work.
I've modified the httpd.conf:
# Virtual hosts
Include /Applications/XAMPP/etc/extra/httpd-vhosts.conf
My httpd-vhosts.conf file:
NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /Applications/XAMPP/xamppfiles/htdocs
ServerName localhost
</VirtualHost>
<Directory "/Users/username/Documents/Fontys">
Options Indexes FollowSymLinks ExecCGI Includes
AllowOverride All
Order allow,deny
Allow from all
</Directory>
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /Users/username/Documents/Fontys
ServerName fontys
</VirtualHost>
And my hosts file:
127.0.0.1 localhost
127.0.0.1 fontys
When i visit http://localhost it works but if i visit http://fontys i get an "Access prohibited" error.
Can anyone point me in the right direction?
Thanks!