I am trying to create a virtual host on my localhost (XAMPP). Tried every combination out there, but I always get htdocs loaded instead of the specific folder
Here is the hosts
file:
127.0.0.1 localhost
::1 localhost
127.0.0.1 devsnappy
Here is httpd-vhosts.conf
:
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot E:/xampp/htdocs/snappy/public
ServerName devsnappy
<Directory "E:/xampp/htdocs/snappy/public">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Any suggestions?
For anyone who reads this and no solution help you, this is what helped me.
Just uncomment this Include line in your httpd.conf:
# Virtual hosts
Include etc/extra/httpd-vhosts.conf
That way, it will make changes you made in your etc/extra/httpd-vhosts.conf available!
Don't forget to restart Apache server afterwards!