#1 (permalink)  
Old 07-09-2009, 04:32 PM
Registered User
 
Join Date: Jul 2009
Posts: 4
freiden is on a distinguished road
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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 07-09-2009, 04:47 PM
Registered User
 
Join Date: Aug 2004
Posts: 472
david510 is on a distinguished road
Was the IP of the domain you created changed? If the IP is changed, there will be a small downtime.
__________________
www.cliffsupport.com
Affordable Server Management Solutions
cPanel server management
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 07-09-2009, 04:50 PM
Registered User
 
Join Date: Jul 2009
Posts: 4
freiden is on a distinguished road
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 07-09-2009, 06:45 PM
Senior Member
 
Join Date: Jun 2005
Location: Area 51
Posts: 1,535
Spiral is on a distinguished road
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.
__________________
[b][color="Blue"]Server Support[/color]: [color="Red"]Server consulting, security, and management![/color][/b]

Last edited by Spiral; 07-09-2009 at 06:48 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 07-10-2009, 10:54 AM
Registered User
 
Join Date: Jul 2009
Posts: 4
freiden is on a distinguished road
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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re-directing from a non-existent subdomain? niya cPanel Newbies 3 03-28-2007 10:48 AM
How can I make FTP accounts that are not Public? Lagman cPanel Newbies 4 10-01-2006 11:39 AM
directing http to https ctbhost cPanel and WHM Discussions 1 08-10-2004 08:46 AM
Making an accounts Stats public fishfreek cPanel and WHM Discussions 5 04-26-2004 05:59 AM
Domain Directing 1webguru cPanel and WHM Discussions 1 10-30-2003 03:21 PM


All times are GMT -5. The time now is 10:57 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
© cPanel Inc