Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Feb 2011
    Posts
    4

    Default Can a cpanel account have www hosted externaly

    We are in process of migrating accounts to a new cpanel / whm centos vps server from linux and windows servers. Obviously we cannot port asp over night and need a propper dns zones set up so that for the time being we can still utilise domains on windows server.

    The problem is that all tests have shown that we cannot have a cpanel user account with a dns zone that has www subdomain hosted externally. Which doesn't make any sense. Because our new nameservers are returning all the proper records. But instead of an expected page hosted on windows we get this account's home public_html directory listing from vps.

    It could be that the test is wrong, but since this is a production environment I want to be absolutely sure that things will work once I change nameservers at registrars.
    The difference between old dns zone and new dns zone is only in nameservers and added A records for cpanel and whm. When I enter new vps's ip in my computer hosts file for www.somedomain.tld, I get an unexpected resault in web browser, that insted of displaying content from windows server shows user's public_html directory listing from new vps.
    Then I did a similar test, except that I entered old linux vps's ip (the one that has the same dns zone, but not a cpanel user account) into my computer's hosts file for www.somedomain.tld and results were as expected and windows content was shown in web browser.

    Any ideas are greatly appreciated.

  2. #2
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Can a cpanel account have www hosted externaly

    You should be able to edit the WHM > Edit DNS Zone and change the CNAME or A record to an A record pointing externally. I've edited DNS zones on my cPanel machines before in WHM to change the location of the www.domain.com versus the domain.com entries.

    To show this is possible, I changed my www.tristanwallace.com domain to point to another account and didn't revise tristanwallace.com location. This was simply done by editing WHM > DNS Functions > Edit DNS Zone, selecting my domain, then revising the following:

    Code:
    www 14400 IN CNAME tristanwallace.com.
    To the following:

    Code:
    www 14400 IN A 208.74.124.112
    At this point, the two locations show different content. I'm uncertain how precisely you are editing these zones and what you are putting for the zone details. If you are hosting the zones externally, you should still be able to do it like I've noted above on the external machine to have www having different records. I've done this at my domain registrar before as well.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

Similar Threads & Tags
Similar threads

  1. What is www in a cPanel account's home directory?
    By browserdaily in forum New User Questions
    Replies: 2
    Last Post: 12-07-2010, 07:38 AM
  2. Redirect www, but keep email hosted
    By stevebor1 in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 04-12-2010, 07:23 PM
  3. Replies: 1
    Last Post: 11-17-2007, 12:01 AM
  4. How to change the password of hosted account
    By ljwhite in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 05-13-2006, 01:59 AM
  5. Website Hosted with me, Mail hosted at company site
    By mstorman in forum cPanel and WHM Discussions
    Replies: 15
    Last Post: 12-22-2005, 02:46 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube