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