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.

server.mydomain.com shows another site?

Discussion in 'General Discussion' started by Secret Agent, Nov 6, 2004.

  1. Secret Agent

    Secret Agent Guest

    server.mydomain.com shows another site on my server. How do I correct this?
     
  2. dgbaker

    dgbaker Well-Known Member
    PartnerNOC

    Joined:
    Sep 20, 2002
    Messages:
    2,578
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Toronto, Ontario Canada
    cPanel Access Level:
    DataCenter Provider
    In http.conf make sure that the first virtual entry is for server.mydomian.com you are probably getting another site as the entry for server is not there and the other site is the the first virtual entry.
     
  3. Secret Agent

    Secret Agent Guest

    I think you meant (if I'm not mistaking) httpd.conf

    If so, I checked it and my domain is the first one on the list for virtual hosts.

    What else could it be?
     
  4. dezignguy

    dezignguy Well-Known Member

    Joined:
    Sep 26, 2004
    Messages:
    534
    Likes Received:
    0
    Trophy Points:
    16
    Is it indeed the first one for that particular ip? Find the instances of NameVirtualHost ipaddress

    If that doesn't help, then find the site that is currently showing up in the httpd.conf and then paste the block for the one you want to show up instead just ahead of it. And then restart httpd.
     
Loading...

Share This Page