Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

How to redirect a domain to another server?

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  mod_perl vs. cgi, suid-perl (long)  
Author Message
mfgjojo

External


Since: Jul 01, 2003
Posts: 3



(Msg. 1) Posted: Tue Jul 01, 2003 11:02 pm
Post subject: How to redirect a domain to another server?
Archived from groups: alt>apache>configuration (more info?)

Hi NG,
I did a domain relocation from my old server to my new server. Now until all
NS are updated how can I redirect the domains from my old server to my new
server?
Lets say example.com is now hosted on ServerB bevore it was on ServerA. How
can I tell ServerA to fetch the content of example.com from ServerB?

Thank you,
Joachim

 >> Stay informed about: How to redirect a domain to another server? 
Back to top
Login to vote
davide

External


Since: Jul 07, 2003
Posts: 44



(Msg. 2) Posted: Tue Jul 01, 2003 11:02 pm
Post subject: Re: How to redirect a domain to another server? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Joachim <mfgjojo.TakeThisOut@gmx.de> wrote:
 > Lets say example.com is now hosted on ServerB bevore it was on ServerA. How
 > can I tell ServerA to fetch the content of example.com from ServerB?

Very quickly (see the documentation for more info):

NameVirtualHost *

<VirtualHost *>
  ServerName example.com
<font color=purple>  Redirect / <a style='text-decoration: underline;' href="http://ip.of.the.server/</font" target="_blank">http://ip.of.the.server/</font</a>>
</VirtualHost>

Davide<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: How to redirect a domain to another server? 
Back to top
Login to vote
mfgjojo

External


Since: Jul 01, 2003
Posts: 3



(Msg. 3) Posted: Wed Jul 02, 2003 2:39 am
Post subject: Re: How to redirect a domain to another server? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

 > <VirtualHost *>
 > ServerName example.com
<font color=purple> > Redirect / <a style='text-decoration: underline;' href="http://ip.of.the.server/</font" target="_blank">http://ip.of.the.server/</font</a>>
 > </VirtualHost>

But when I redirect to the ip of my new server I get the default domain of
my new server. This is the problem. I have to redirect example.com to
example.com but on another server
How can I do this?

Thanks<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: How to redirect a domain to another server? 
Back to top
Login to vote
kd6lvw

External


Since: Nov 02, 2003
Posts: 31



(Msg. 4) Posted: Wed Jul 02, 2003 2:46 am
Post subject: Re: How to redirect a domain to another server? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Tue, 1 Jul 2003 davide DeleteThis @yahoo.com wrote:
 > Joachim <mfgjojo DeleteThis @gmx.de> wrote:
  > > Lets say example.com is now hosted on ServerB bevore it was on ServerA. How
  > > can I tell ServerA to fetch the content of example.com from ServerB?
 >
 > Very quickly (see the documentation for more info):
 >
 > NameVirtualHost *
 >
 > <VirtualHost *>
  > ServerName example.com
<font color=green>  > Redirect / <a style='text-decoration: underline;' href="http://ip.of.the.server/</font" target="_blank">http://ip.of.the.server/</font</a>>
 > </VirtualHost>

This can also be done in the rewrite engine, although such is more "costly."<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: How to redirect a domain to another server? 
Back to top
Login to vote
bonk

External


Since: Jul 01, 2003
Posts: 3



(Msg. 5) Posted: Wed Jul 02, 2003 2:54 am
Post subject: Re: How to redirect a domain to another server? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Joachim wrote:
  >> <VirtualHost *>
  >> ServerName example.com
<font color=green>  >> Redirect / <a style='text-decoration: underline;' href="http://ip.of.the.server/</font" target="_blank">http://ip.of.the.server/</font</a>>
  >> </VirtualHost>
 >
 > But when I redirect to the ip of my new server I get the default
 > domain of my new server. This is the problem. I have to redirect
 > example.com to example.com but on another server
 > How can I do this?

You fix DNS to point at your new server *after* you copied the site to
that server.
After that you wait till DNS is updated - untill that time you have 2
servers serving your site - if you do not see any more hits on the old
server you can disconnect it.
It might help to start lowering TTL *before* starting the move.

HTH,

--
bOnK
Antwoord in de groep, mail bounced.
Answers to the group, mail will bounce.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: How to redirect a domain to another server? 
Back to top
Login to vote
davide

External


Since: Jul 07, 2003
Posts: 44



(Msg. 6) Posted: Wed Jul 02, 2003 8:29 am
Post subject: Re: How to redirect a domain to another server? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Joachim <mfgjojo.TakeThisOut@gmx.de> wrote:
 > But when I redirect to the ip of my new server I get the default domain of
 > my new server.

Then change in machine "B" so _that_ will be his default domain.

Davide<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: How to redirect a domain to another server? 
Back to top
Login to vote
mfgjojo

External


Since: Jul 01, 2003
Posts: 3



(Msg. 7) Posted: Wed Jul 02, 2003 11:53 am
Post subject: Re: How to redirect a domain to another server? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

 > After that you wait till DNS is updated - untill that time you have 2
 > servers serving your site

What is if a user has got cgi´s or something else (guestbook etc)? I think
that would be not so good Smile

 > If you are redirecting everything from machine a to machine b, why not
just
 > change your DNS to machine b's settings and stop using machine a?

Lets say I want to do this a little bit more professional. Not just
switching ServerA off. You have to calculate up to 2 Wheeks until all NS in
the world are updated. Then the domains are down up to 2 Wheeks.

 > Then change in machine "B" so _that_ will be his default domain.

What is if I have 20 Domains? Smile

Thanks,
Joachim<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: How to redirect a domain to another server? 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Redirect permanent? - Would this work as a redirect? Redirect permanent "CONNECT *:25" http://127.0.0.1:25 Or should I just leave apache to give 405 errors? -- del 8-) http://www.foodel.org.uk http://www.diverdel.org.uk

puzzled with redirect - I want to redirect everyting that goes to http://myweb.TLD/foo/bar/ to http://otherweb.TLD/foobar/index.php?page=getfirstpage what I mean is that no matter if they look for /foo/bar/index.html or /foo/bar/subdir/blah.txt they always get redirected to th...

how to have apache pick up right domain name when send for.. - Hello, I have several web sites virtually hosted on one machine, and this machine has two domains (I mean they have zone files setup on this machine). When sending form mail from any one of those web sites, one of the two domain names will be picked up....

My Server being Hacked? - In my server logs I see entries such as: 64.253.39.170 - - [27/Jun/2003:15:23:37 -0400] "GET /default.ida?XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX..

Problems with WAMP Server - HI! I'm running a distribution of Apache on a Windows 2000 machine (Apache Version 1.3) PHP and MySql works perfect and I can also run scripts like guestbooks on the computer itself. But if I try to open scripts from a Windows XP Client Computer by..
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]