testing local virtual hosts before making a DNS change
David Thornton
david-FkEgs2FKm2NvBvnq28/GKQ at public.gmane.org
Thu Mar 24 22:42:14 UTC 2005
type this:
( fill in the <> as needed.)
$ telnet <webserveripaddress> 80 <enter>
HTTP / HTTP/1.1 <enter>
Host: <youvirtualhostname> <enter>
<enter>
...
your virtual web page here
...
<control-d>
Start again with next virtual host...
I use this technique lots as part of narrowing down dns/web server/
network issues.
telnet + a little know how... the ultimate browser.
david
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
>
> To my '/etc/hosts' file expecting it to have the highest priority in
> name resolution. For various reasons this server is already running a
> live DNS server that is a slave to the NS with SOA on all the domains so
> I can't simply drop in my own DNS server to override the name
> resolution. (I know this isn't optimal but it made the most sense, all
> things concidered).
>
> So my question then is; How can I test apache (and later mail) for
> domains currently on another IP?
>
> Thanks!
>
> Madison
>
--
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