Local Domain Name in Windows
Uncategorized No Comments »This a simple tutorial on how to create a local domain name in windows using Apache.
First go to C:\Windows\System32\drivers\etc and edit the hosts file using notepad
Second add this inside the hosts file 127.0.0.1 www.yourdomain.com
Third go to your apache\conf\extra and edit httpd-vhosts.conf and add the text below
DocumentRoot “C:\xampp\htdocs\your_web_app_folder”
ServerName www.yourdomain.com
Next go to apache\conf and uncomment Include conf/extra/httpd-vhosts.conf
Save everything and restart Apache
Then try to access http://www.yourdomain.com