The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

A domain appears when visiting hostname url

Discussion in 'General Discussion' started by elevenx, Jan 3, 2008.

  1. elevenx

    elevenx Member
    PartnerNOC

    Joined:
    Oct 8, 2005
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    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. RizyDeWino

    RizyDeWino Well-Known Member

    Joined:
    Aug 1, 2005
    Messages:
    74
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Planet Earth
    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.
     
  3. elevenx

    elevenx Member
    PartnerNOC

    Joined:
    Oct 8, 2005
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Hello,

    Worked perfectly!

    Thank you very much...
     
Loading...

Share This Page