
View • Attachments (2) • Info
Previewing Your Web Site By Editing Your Hosts File
For various reasons it may be necessary to update the Hosts file on your computer to properly resolve a web site by its domain name. The most common reason for this is to allow you to view or publish web content immediately after purchasing a new domain name or transferring an existing domain name to our service.
New and transferred domain names have a delay period that can be anywhere from a few hours to a few days. During this period of time the new or transferred domain information propagates around the internet, and is generally unavailable.
If you need to preview your site immediately and cannot use the Plesk Site Preview feature then you can edit a file on your computer as a temporary work around.
Windows contains a file called 'hosts' that will force resolution of your domain name. Edit this file using the following procedure.
Use Windows explorer to navigate to the following directory:
Windows 95/98/Me c:\windows\hosts
Windows NT/2000 c:\winnt\system32\drivers\etc\hosts
Windows XP Home/Pro c:\windows\system32\drivers\etc\hosts
Open your hosts file in Notepad. It should look something like this when you open it:

We will start typing on a new line at the bottom of the file. To do so, click your mouse so that the cursor is at the very end of the last line and hit <Enter> to start a new line.
Enter the following two lines of text like this example:
123.123.123.123 yourdomainname.com
123.123.123.123 www.yourdomainname.com
| Important Note You must replace the 123.123.123.123 number with the IP Address of the web server detailed in your Net24 setup email. Replace 'yourdomainname.com' and 'www.yourdomain.com' with the domain name of your web site. |
Your Hosts file should looks something like this when you are done.

Close the Hosts file and save it when asked. If your browser is currently open, close it so that the changes take effect. It is not necessary to restart your computer.
You should now be able to view and publish to your web site using your domain name.
|
Browse Space |
Explore Confluence |
Your Account |
Add Content |
|
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5.8 Build:#814 Oct 02, 2007) |