Currently typing "localhost" into my browser displays a list of projects, all good... I can even do "localhost/mysite" however and I know this is slightly pedantic, but how can I convert this to "localhost.mysite" or for example "projects.local"?
I've attempted editing the hosts files but I'm not having much luck.
httpd.vhosts.conf file contents:
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot /Applications/MAMP/htdocs
ServerName localhost
</VirtualHost>
<VirtualHost *:80>
DocumentRoot “/Users/grant/Sites/mysite/"
ServerName mydomainname.dev
</VirtualHost>
Thanks in advance.