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