Web Hosting Talk







View Full Version : Moving my site...can I make the server think it is another domain name


exedgeman
09-24-2005, 10:06 AM
I am going to be moving my site soon and wanted to know if there is a way in Linux to have the server think it is another domain so I can test all my scripts. Basically I want to run a parallel site until I am sure it will work then I will point the domain there...

PlanetWebHost
09-24-2005, 04:00 PM
you can do that on your windows client.

Edit the file called
C:WINDOWS\system32\drivers\etc\hosts

On the bottom add the line...
xxx.xxx.xxx.xxx yourdomain.com
(replace the x's with your sites new IP address)

Then shut down all your browsers, when you open your browsers back up and go to your domain, it will take you to the one on the new IP that you enteded in your hosts file.

exedgeman
09-25-2005, 09:50 AM
Thanks for the response to letting me change the client. How would I do this for the host box? The goal is to run a parrell site before flipping the switch off on my old host.

deuce868
09-25-2005, 10:40 AM
read about apache virtual hosts. That will allow you to run a parallel site on the linux server.

jimlundeen
09-26-2005, 08:57 AM
and the hosts file is fairly universal. in *nix, it's located at /etc/hosts -- syntax is the same as the Windows version.