I have a legacy system that I'm attempting to make a significant configuration change to, but am not seeing a way to do so cleanly.
The state I inherited consists of a web site hosted on two app servers which sit behind a load balancer ( each server hosts a LAMP stack). The A record (example.com) for the domain points to the balancer, as does the CNAME entry for 'www.'
Now, I'd like to move this site to another server that I have set up and ready to go, something that would normally be quite simple; however, the problem that I have is that the servers that currently serve the website also serve additional applications served from sub-directories on the same 'example.com' and 'www.example.com' entries.
What I desire is as follows:
www.example.com and example.com point to server A
www.example.com/scripts... and example.com/scripts... point to the current load balancer
This would have been simple were the services originally set up in sub-domains, but that is not so and making the migration would be quite painful for a significant number of clients.
I can't find an elegant way of doing this. Does anyone have any suggestions?
To clarify, the products in the /scripts/... directory are accessed programmatically over an SSL connection by client-built applications (it's a service that takes in a query string and returns XML). Does this have an effect on the solution?