Monday, February 22, 2010

How to create domains in a local machine




For a developer it is really important to test applications with different domains on the local computer, this is a simple way to create all the domains you need in your local machine:

1.- Open the hosts file

Look for the fine named hosts usually on the folder:
C:\WINDOWS\system32\drivers\etc\
open it with word pad

2.- Add your domain

Below the local host add your domain, for example 127.0.0.1 test.domain.com
Save the file
3. Test your local domain

Open a web browser and type the domain you just added, the web site should display the page.




No comments:

Post a Comment