Hi i've my default apache server running on port 80 in ubuntu linux. And that i have aniother 2 apache instances running on port 4437 and 4438. My issue is

Whenever a customer having a sub domain demands the page being an examplle

cus1.myserver.com

it needs to be rerouted towards the apache instance runninng on port 4437

cus2.myserver.com

this needs to be rerouted towards the apache server running on port 3308

the defaults apache server includes a seperate configuration file along with other 2 instances also provide seperate httpd.conf files. how do i do that.

In simple how you can redirect a sub domain for an apache instance running on the different port. Using virtual hosts or other way