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 22.214.171.124 (example)
The Database is 126.96.36.199
I have the domain MyExample.com pointing to 188.8.131.52 and that's our main web server.
Now we want the subdomain test1.MyExample.com to point to 184.108.40.206/test1 and test2.MyExample.com to 220.127.116.11/test2
I have created the subdomains on our DNS server as follows:
test1 IN A 18.104.22.168
test2 IN A 22.214.171.124
They are now pointing to 126.96.36.199 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.