I set up a virtual host for my laravel project, and while I can access the site via IP I cannot access it by domain name (it redirects me to WAMPserver's homepage). For reference I'll provide both relevant screenshots and code excerpts:
#Dragon's Lair Laravel Project <VirtualHost 127.27.18.28:80> ServerName dragonslair.test DocumentRoot "c:/laravelprojects/dragonslair/public" <Directory "c:/laravelprojects/dragonslair/public/"> Options +Indexes +Includes +FollowSymLinks +MultiViews AllowOverride All Require local </Directory> </VirtualHost>
# 127.0.0.1 localhost ::1 localhost 192.168.10.10 dummyRegistration.test 127.27.18.28 dragonslair.test ::1 dragonslair.test
IP Address Resolves Properly
Domain Name Redirect
I would presumably create many virtual hosts in future, and don't want to start having to memorise their IP addresses, which is why I want to get the DNS working properly.