shankshank
asked on
Web site re-direction
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
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
ASKER
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
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.