Solved

Web site re-direction

Posted on 2013-01-10
3
250 Views
Last Modified: 2013-01-29
I currently run a website on apache on SERVERA that is located here
www.site.com/MYSITE

I need to launch another site using the same domain but located on a different web server SERVER B
www.site.com

How do I configure this? Right now DNS points to SERVERA.

Do I configure apache on server A to redirect www.site.com to a different IP address? I need something reliable and that makes sense

thank you
0
Comment
Question by:shankshank
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 16

Expert Comment

by:grahamnonweiler
ID: 38764061
On the assumption you have different content on the two different servers, then the only way you can reliably handle it is to use a different sub-domain on the second server. Then you would simply set-up DNS for the sub-domain to point at the second server.

For instance:

                  www.site.com  ->  A record pointing to server 1 IP address.
                  ww2.site.com  ->  A record pointing to server 2 IP address

If the content on both servers is the same, and you are trying to "load balance" between the servers using DNS - then you could use "round robin" style entries in your DNS.

What you suggested as a solution, having the first server redirect to a different IP address would result in the visitor seeing the IP address of the second server in their browser.

Another route you could take would be to us reverse proxy in front of both servers, and handle the redirects there.
0
 
LVL 5

Author Comment

by:shankshank
ID: 38765193
Yes there is different content on the two servers. Yeah I figured we had to do a different subdomain, I just wasn't sure if we can cheat for the www.domain vs the www.domain/subfolder
0
 
LVL 16

Accepted Solution

by:
grahamnonweiler earned 500 total points
ID: 38765957
You can "redirect" www.site.com/subfolder  to   ww2.site.com  but the second server will still have to have its own sub domain and DNS.

The redirect will make it a little easier from a visitor/user perspective.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question