testing local virtual hosts before making a DNS change

Peter plp-ysDPMY98cNQDDBjDh4tngg at public.gmane.org
Fri Mar 25 14:34:54 UTC 2005



On Thu, 24 Mar 2005, Madison Kelly wrote:

> Hi all,
>
>  I am building a new server to replace an aging old one. This server
> has numerous domains and actually come from several machines. Because of
> this I want to test as much as I can to make sure the migration worked.
> The problem I am having at the moment is with how to test domains in an
> Apache (2.x) virtual host contained without making DNS changes.
>
>  I though I could just add something like:
>
> www.domain.com	111.222.33.44		# The new IP

Enable multiple IPs for your machine and assign an IP that is not routed 
for your network to your virtual server(s), and to your machine. Make 
sure that the routing table does not route it (neither in nor out). Then 
add the host to your /etc/hosts and test

Peter

--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list