This is a selfish tutorial, I keep having to check online every time I come to do this just to remind myself what it is I’m doing. The process is more or less the same depending on using XAMPP or MAMP and due to the vast number of sites I work on a year giving them all a unique virtual hostname is an essential but forgettable part of web development.
<VirtualHost example.local:80> ServerAdmin firstname.lastname@example.org DocumentRoot “C:/xampp/htdocs/example” ServerName example.local ServerAlias example.local <Directory “C:/xampp/htdocs/example”> Order allow,deny Allow from all </Directory> </VirtualHost>
# 127.0.0.1 localhost
# 127.0.0.1 example.local
That should be it, all set up on windows with a new virtual host for your local development needs.
If you have an interesting opportunity or a project in need of a developer, please get in touch: