Hey Experts...
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 111.222.121.5 (example)
The Database is 111.222.121.6
I have the domain MyExample.com pointing to 111.222.121.5 and that's our main web server.
Now we want the subdomain test1.MyExample.com to point to 111.222.121.6/test1 and test2.MyExample.com to 111.222.121.6/test2
I have created the subdomains on our DNS server as follows:
test1 IN A 111.222.121.6
test2 IN A 111.222.121.6
They are now pointing to 111.222.121.6 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.
Start Free Trial