Solved

Web site re-direction

Posted on 2013-01-10
3
248 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
  • 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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

The purpose of this article is to demonstrate how we can use conditional statements using Python.
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

856 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