Results 1 to 6 of 6
  1. #1

    Setting up subdomains to point to a folder through DNS?

    Is it possible to point user1.domain.com to www.domain.com/~user1/ through a DNS record?

    Kind of like how some hosts do multiple-domain hosting by pointing seconddomain.com to firstdomain.com/seconddomain/

    Can someone tell me how to do this?

  2. #2
    This is not done through DNS, this is done through the web server configuration. In most cases this is done via the httpd.conf file if you are using apache.
    *AlphaOmegaHosting.Com* - Hosting since 1998
    Managed Dedicated Servers and VPS
    Hosted Exchange 2010 Email Service

  3. #3
    aww, shucks. Would this work though? (for someone who has access to DNS records but not web server config)
    user1.domain.com IN CNAME www.domain.com/~user1/

    Thanks for the quick reply.

  4. #4
    Join Date
    Apr 2002
    Location
    North Kansas City, MO
    Posts
    2,565
    No, it wouldn't work... sorry.

  5. #5
    No. Because you are trying to tell DNS to resolve user1.domain.com to domain.com/~user1/ but domain.com/~user1/ does not resolve to an IP address...only domain.com does.

    Even so, it would only provide the ip address of domain.com. It is the apache configuration that make domain.com go to directory a and user1.domain.com go to directory b.
    *AlphaOmegaHosting.Com* - Hosting since 1998
    Managed Dedicated Servers and VPS
    Hosted Exchange 2010 Email Service

  6. #6
    Thanks for the replies! Now I know it how it works.

Posting Permissions

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