Switching between virtual host and localhost
I created a virtual host by copying and pasting this code in my httpd-vhosts configuration file:
!
##<VirtualHost *:80>
##ServerAdmin webmaster@dummy-host.example.com
##DocumentRoot "C:/xampp/htdocs/dummy-host.example.com"
##ServerName dummy-host.example.com
##ServerAlias www.dummy-host.example.com
##ErrorLog "logs/dummy-host.example.com-error.log"
##CustomLog "logs/dummy-host.example.com-access.log" common
##</VirtualHost>
If I delete this code I won't be able to access the site for which I created the fake domain. On the other hand, I can't create another site because now 127.0.0.1 is synonymous with the virtual domain.
So do you keep the changed code and comment it out until the day you might need to access the site? Or do you change the site host name to localhost/sitename as you would normally when you create a site to test locally?
