Results 1 to 8 of 8
  1. #1

    subdomain question

    I have a customer that wants me to set them up a subdomain that points to a different server.

    For example, www.mydomain.com will be on my server and sub.mydomain.com will be running on another server.

    I am running Cpanel/WHM. Is there anyway this can be done?

  2. #2
    Join Date
    Feb 2004
    Location
    Atlanta, USA
    Posts
    120
    Hi

    Do you own both servers or is the server that will have sub.mydomain.com on someone elses server?

    Regards,

  3. #3
    The second server is owned and maintained by a third party. I have no control over it.

  4. #4
    Does anybody know if this is even possible?

  5. #5
    Join Date
    Jan 2001
    Location
    Miami, FL
    Posts
    1,072
    You can put in a A record in your DNS to point to the other server... however, the other server MUST setup the subdomain in apache. More then that, i would also have the other server duplicate your DNS records incase mail and other things are sent out of the subdomain.
    Biznesshosting, Inc. DBA VOLICO - Intelligent Hosting Solutions
    East Coast Enterprise Dedicated Servers and Miami Colocation.
    managed and unmanaged dedicated servers. High bandwidth colocation. Managed clusters.

  6. #6
    In your WHM under "DNS Functions" click "Edit a DNS Zone" add the subdomain they want such as "sub", make sure the select box is "A" now add the IP of the account on the other server in the text box right after the select box.

    Now you have to make sure the account is setup on the other server under the same subdomain and domain with the exact IP you just added into your own WHM.

    In theory it should work

  7. #7
    Thanks for the info. I will give this a try.

  8. #8
    Join Date
    Jul 2003
    Location
    India
    Posts
    43
    Hello,

    It's possible. You may do it in many ways the most simple way is to tell him to add a .htaccess file to redirect the subdomain to the desired place.
    Redirect /olddirectory http://yoursite.com/newdirectory/

    You may also give a redirection in the httpd.conf file. But it would be better to use the .htaccess by the user since it would not mess the httpd.conf file.

Posting Permissions

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