FORUMS: list search recent posts

viewing a new web server before making it live

COW Forums : Web Design

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
James Iles
viewing a new web server before making it live
on Sep 2, 2009 at 2:44:20 pm

Hi,

I am trying to remember a very clever thing a web developer friend once showed me, but I just can't remember or find any clues to it on the web.

It involved editing a system file using notepad so that I could over ride the ip and server settings to visit a server that was not listed as the whois lookup.

What I am trying to do is illustrated in this example (I am trying to be as clear as possible) E.g. :

domain name http://www.example.com is currently on server abc1.europe.com

I want my computer to access the domain name as http://www.example.com on server abc1.newserver.com


In the text editor I had to type something like

http://www.example.com abc1.newserver.com

This is so that the web browser reads this system file and knows that for this particular domain name it should be redirected. I think there may have even been the ip of the server included too.

What this allows is for me to look at the new website whilst the rest of the world looks at the old until the change is made official.

If anyone can help I will be most grateful.

Thank you.

James


Return to posts index

Abraham Chaffin
Re: viewing a new web server before making it live
on Sep 2, 2009 at 2:47:25 pm

I know on Windows XP it's here:
C:\WINDOWS\system32\drivers\etc\hosts


Abraham


Return to posts index

James Iles
Re: viewing a new web server before making it live
on Sep 3, 2009 at 12:54:53 am

Thank you Abraham, it feels so good to be able to set this up again! I forgot to mention I was in Windows.

As a reference to anyone else, if you're in Vista you'll have to open Notepad with administrator privileges to save the changes to the hosts file.

Find Notepad on your start menu and right click it, on the menu that appears choose "Run as administrator". Then open the file through the file menu and open file dialog box.


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]