Software to split http traffic between servers

A 5 star hangout for overworked and underpaid system admins.
Post Reply
kbensch
Posts: 50
Joined: 2005/04/22 17:27:42
Location: Maidenhead, UK
Contact:

Software to split http traffic between servers

Post by kbensch » 2010/09/13 08:45:46

Morning everyone.

I have a webserver that runs a bunch of client related portal sites. I now want to upgrade this server, but want to do it in a controlled manner. I.e. one portal at a time. The urls for each portal looks like this:

https://www.mycomp.co.uk/client1
https://www.mycomp.co.uk/client2
https://www.mycomp.co.uk/client3
https://www.mycomp.co.uk/client4

What i am looking for a software, even if i have to load it on a seperate server, to send all requests for https://www.mycomp.co.uk/client1 and https://www.mycomp.co.uk/client2 to one server, but all requests for https://www.mycomp.co.uk/client3 and https://www.mycomp.co.uk/client4 to another server. I did look at ultra monkey, but that is more for HA and LB.

Can someone please point me in the right direction for a suiable solution.

Thanks in advance.

Kobus

abednegoyulo
Posts: 550
Joined: 2007/12/26 06:24:38
Location: 127.0.0.2 44013

Re: Software to split http traffic between servers

Post by abednegoyulo » 2010/09/13 08:56:27

Assuming that you are using Apache's HTTPD server, you may want to read [url=http://httpd.apache.org/docs/2.2/misc/rewriteguide.html]mod_rewrite[/url]. There are tons of tutorials out there for beginner, intermediate and advance people. I am no expert on mod_rewrite but from what I understand in your description of your goal, then mod_rewrite can do the job.

kbensch
Posts: 50
Joined: 2005/04/22 17:27:42
Location: Maidenhead, UK
Contact:

Re: Software to split http traffic between servers

Post by kbensch » 2010/09/13 09:09:04

Thank you for the reply. Unfortunately the sites are all running on IIS. Yes I know, not my choice. I also want to use this solution to move the sites in future to Apache.

abednegoyulo
Posts: 550
Joined: 2007/12/26 06:24:38
Location: 127.0.0.2 44013

Re: Software to split http traffic between servers

Post by abednegoyulo » 2010/09/13 09:43:30

Since you mentioned that you are willing to use a dedicated server for it, then I see no problems :-D Put your Linux-Apache server in front and configure it to whatever you want it to do.

BTW, since this is a non-CentOS specific question, this might be moved to CentOS social. Good luck!

User avatar
AlanBartlett
Forum Moderator
Posts: 9345
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk
Contact:

Re: Software to split http traffic between servers

Post by AlanBartlett » 2010/09/13 14:11:35

[quote]
Unfortunately the sites are all running on IIS.
[/quote]
Doesn't that originate from the [i]Redmond[/i] organisation, M$? :-o

Moved to [i]Social[/i]. (Just in case. ;-) )

hansolo
Posts: 231
Joined: 2010/01/13 11:17:42
Location: SI

Re: Software to split http traffic between servers

Post by hansolo » 2010/10/29 07:31:55

Sorry for delay with this reply.

What I would do is make all https://www.mycomp.co.uk/client1 .../client2 etc. a subdomain like https://client1.mycomp.co.uk/
and then make them with DNS point to another server, like:

client1 IN A 1.2.3.[b]100[/b]
client2 IN A 1.2.3.[b]100[/b]

client3 IN A 1.2.3.[b]2[/b]
client4 IN A 1.2.3.[b]2[/b]

Post Reply