Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    151
    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:
    156
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. elevenx

    elevenx Member
    PartnerNOC

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

    Worked perfectly!

    Thank you very much...
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice