Results 1 to 2 of 2
  1. #1

    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

  2. #2
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •