Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Jul 2009
    Posts
    4

    Default Accounts not directing to proper public _html

    This may be more of a server problem than whm/cpanel, but I'm pretty stumped.

    I have a domain I'm using as a name server which is properly set up to point to my server's IP. (i.e. www.serverdomain.com)

    If I visit the domain (www.serverdomain.com) I see the proper apache/cpanel success install page.

    I created a new user account (i.e."user") which is set to have a different default domain (i.e. www.accountdomain.com).

    When I try to visit "www.accountdomain.com" I still see the default apache/cpanel success install page that is on "www.serverdomain.com", not the files that are in "home/user/public_html"

    If I go to "www.serverdomain.com/~user/" the proper content is displayed
    and the same if I go to "www.accountdomain.com/~user/", the same proper content is displayed.

    Apparently the server doesn't distinguish the difference between the servers main domain and the domain per an account. Everything else appears to be set up right for the file structure and account properties. If I ftp or ssh in as the "user" I see only the files and folders I am supposed to. FTPing into the system using the "user" account takes me right to the "/home/user/" directory.

    Any ideas what I have not set correctly?

    Thanks!

  2. #2
    Member
    Join Date
    Aug 2004
    Posts
    472

    Default

    Was the IP of the domain you created changed? If the IP is changed, there will be a small downtime.
    www.cliffsupport.com
    i WebManager | Access WHM from your iPhone

  3. #3
    Registered User
    Join Date
    Jul 2009
    Posts
    4

    Default

    The IP has been the same for the server. It's been the same all along. The server domain point directly to the ip of the server.

  4. #4
    BANNED
    Join Date
    Jun 2005
    Location
    Wild Wild West
    Posts
    2,025

    Lightbulb

    Yes we know the addon domain has the same IP as the main account
    but the question is whether your computer at home is resolved the
    correct IP address or not.

    Bring up a DOS window (or shell if running Linux) and type:
    Code:
    ping yourdomainname.com
    What IP address is shown on your computer?

    Is the IP address shown, the same as your new hosting account?

    If you just recently (within the last 72 hours) changed the DNS servers
    on the addon domain to point to your new hosting account, it is possible
    that your ISP or your own computer is using old cached routing information
    instead of the actual live DNS information and your computer is instead
    trying to connect to where the domain USED TO BE before moving it
    instead of where it is located now. If the account no longer exists
    where the domain used to point, you would be shown the default page
    on that server instead of a web hosting account.

    If your computer is showing the wrong (old) IP address when you
    check from your computer, there is something you can do to fix that
    and force your computer to go to the correct IP address:

    In Linux, it's /etc/hosts

    Under Windows, C:\Windows\System32\Drivers\Etc\Hosts

    If you put the domain name and IP address in that file,
    your computer will use the IP address you specify when
    trying to connect instead of normal DNS resolution.

    PS: Per your topic subject, addon domains don't have files in /public_html
    For "addon" domains, you just drop the files where FTP connects and
    don't have to change to "/public_html" like you do with the main domain.
    Last edited by Spiral; 07-09-2009 at 06:48 PM.

  5. #5
    Registered User
    Join Date
    Jul 2009
    Posts
    4

    Default

    ok, figured it out. Thanks for everyone's help!

    The problem was due to my firewall. I had to switch my NS and A entries to use the IP 10.0.0.1 instead of the actual IP...

    Thanks!

Similar Threads & Tags
Similar threads

  1. view accounts public html with ~cpuser
    By DavidS in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 01-28-2010, 09:17 PM
  2. How can I make FTP accounts that are not Public?
    By Lagman in forum New User Questions
    Replies: 4
    Last Post: 10-01-2006, 11:39 AM
  3. directing http to https
    By ctbhost in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-10-2004, 08:46 AM
  4. Making an accounts Stats public
    By fishfreek in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 04-26-2004, 05:59 AM
  5. Domain Directing
    By 1webguru in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 10-30-2003, 03:21 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube