Results 1 to 2 of 2
-
07-10-2004, 02:44 PM #1Newbie
- Join Date
- Mar 2003
- Posts
- 27
Simple DNS - Subdomain config question
I have register a domain name i want to point to a subdirectory in a domain al owened earlier.
Example:
I own
www.mydomain1.com and www.mydomain2.com
I want mydomain2 to pint to:
www.mydomain1.com/mydomain2/
My host has a feature called addon domains and I have created an addon domain like:
http://mydomain2.mydomain1.com
------------------------------------------------------------
1. Is mydomain2.mydomain1.com same as
www.mydomain1.com/mydomian2
for DNS purposes.
2. What DNS do I have to write in the registrar DNS records so that
www.mydomain2.com points to www.mydomain1.com/mydomian2
Thanks
-
07-10-2004, 07:19 PM #2Web Hosting Master
- Join Date
- Jun 2004
- Posts
- 789
This is actually something you would do in Apache, rather than DNS. To set this up, create a virtual host for both domains in Apache. Then you set the docroot for mydomain2.mydomain1.com to be mydomain1.com_root/mydomain2.
As far as your first question, no, they're not equivalent for DNS purposes. In fact, DNS doesn't know anything about folders (/whatever), that's purely an Apache thing.
For the second, like I said, create a virtual host for the subdomain, and make the docroot the folder that is in mydomain1.com's docroot.