Solved

Web site re-direction

Posted on 2013-01-10
3
242 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
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…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

772 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now