0

This may be a question for Server Exchange but I am starting to feel pretty cozy here and I feel like someone here will definitely know the answer. We are currently rebuilding a php site in rails and have the new site that is being rebuilt on a linode box [nginx]. The live domain lives on a slicehost box [also niginx]. Upon launch we are planning on forwarding the complete site to the linode box but would like to set up a subdomain (beta.domain.com) for testing purpose. I know we can do a simple forward / CNAME record but we would like to maintain the same beta.domain.com address.

Any and all help is greatly appreciated.

Note: We currently have complete control over both domains.

jeffreynolte
  • 3,749
  • 11
  • 41
  • 64
  • I'm a little confused about the end state you're looking for, so bear with me as I repeat back your question: you currently have www.domain.com pointing to your production PHP linode box, and beta.domain.com pointing to your beta rails slicehost box. When you launch the Rails site, you want everything which would go to linode to go to slicehost instead. Obviously you're changing DNS and what you're hoping to do is make sure people with cached DNS resolutions still see the new site? – pjmorse Sep 16 '10 at 12:36

1 Answers1

0

It is a question for ServerFault. You will probably get much better answers there, but I'll do what I can...

AFAIK, you have two options:

  1. simply change your dns to point to the new server. If you don't need to preserve the old server for any reason, then this is the way to go. (I'm assuming there's some reason why this isn't an option in your case).

  2. have the box at beta.domain.com (the slicehost box) act as a proxy to the new linode box. In this case, all the requests come in to slicehost, run through that box, and back out to linode, and the responses go back via the same route. So you'll pay for double bandwidth (at least) using this approach -- I do not recommend proxying like this unless you have no other options.

Community
  • 1
  • 1
Lee
  • 13,462
  • 1
  • 32
  • 45