Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Oct 2005
    Posts
    7

    Default A domain appears when visiting hostname url

    Hello,

    When I visit the hostname address of our server, i.e. http://myserver.mydomain.com it shows a cpanel account which was first added to the server, i.e. http://customerdomain.com instead of the default cpanel page with "Great Success ! Apache is working on your cPanel® and WHM™ Server" etc.

    Is there anyway fix this?

    Thank you,

  2. #2
    Member
    Join Date
    Aug 2005
    Location
    Planet Earth
    Posts
    74

    Default

    Open you httpd.conf and make sure the entry like below is the top most virtual host entry in your configuration file :

    <VirtualHost 11.22.33.44>
    BytesLog domlogs/yourserver.hostname.com-bytes_log
    ServerName yourserver.hostname.com
    DocumentRoot /usr/local/apache/htdocs
    </VirtualHost>

    If its missing you can add it , if its there and below you customerdomain vritual host section then move it above this entry and restart apache.
    The world is my country, all mankind is my brethren, and doing good is my religion - Thomas Paine

  3. #3
    Member
    Join Date
    Oct 2005
    Posts
    7

    Default

    Hello,

    Worked perfectly!

    Thank you very much...

Similar Threads & Tags
Similar threads

  1. using default domain when visiting direct IP instead of host name?
    By kazimir82 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 05-09-2011, 12:55 PM
  2. 500 Internal Server Error when visiting domain.ext/cpanel, whm
    By nixgurus in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 02-17-2011, 07:42 AM
  3. Hostname appears in 2 IPS -WHM Linux
    By ultranet in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 06-28-2010, 05:47 AM
  4. WHM account ip url visiting
    By caspernet in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 12-07-2009, 01:26 AM
  5. HOW-TO: Fix MailMan URL after a transfer or change of hostname
    By hicom in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 04-01-2009, 11:32 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube