I need help having Apache to handle some subdomains, This is the Scenario:
I have 2 dedicated servers, 1 Web Server and 1 DB server.
The webserver is 220.127.116.11 (example)
The Database is 18.104.22.168
I have the domain MyExample.com pointing to 22.214.171.124 and that's our main web server.
Now we want the subdomain test1.MyExample.com to point to 126.96.36.199/test1 and test2.MyExample.com to 188.8.131.52/test2
I have created the subdomains on our DNS server as follows:
test1 IN A 184.108.40.206
test2 IN A 220.127.116.11
They are now pointing to 18.104.22.168 and the index.html in the root directory is being load.
My question (I'm a newbie) is how do I get apache to Redirect each subdomain to its respective folder??
/test1 and /test2 are inside the root directory.
And I want to do this without using the .htaccess to redirect.
Can anybody help me with that????
Thanks in advance.