I'm learning how to host websites on a small server at home. I followed some tutorials where they said you had to edit the "hosts" file (C:\Windows\System32\drivers\etc\hosts) and add the following:
After I would go to my "httpd-vhosts.conf" and enter something like this:
<VirtualHost *:80> ServerName domain.com DocumentRoot C:/Apache24/Websites/domain.com </VirtualHost>
Finally, I would go to Godaddy and have it point domain.com to my home IP.
Everything works great but just to do some testing I decided to remove the lines in the "hosts" folder leaving it empty. Restarted my apache service and the websites are still accessible.
So is modifying the hosts file even necessary?
Thanks for the help!