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.

Apache shows another (random) website

Discussion in 'EasyApache' started by LasseTK, Nov 25, 2010.

  1. LasseTK

    LasseTK Active Member

    Joined:
    Apr 15, 2005
    Messages:
    33
    Likes Received:
    0
    Trophy Points:
    6
    I have a strange problem. If I enter www.domain1.com then domain1.com is shown correctly. However if I enter mail.domain1.com it shows the domain2.com website!?

    Actually no matter what i type in after mail.* it will always show the website of domain2.com.

    Any ideas?
     
  2. LasseTK

    LasseTK Active Member

    Joined:
    Apr 15, 2005
    Messages:
    33
    Likes Received:
    0
    Trophy Points:
    6
    I have fixed this issue on the main shared IP now by running /scripts/rebuildhttpdconf

    I however have a second shared IP where a wrong website is still shown instead of the default web site page.

    Please provide inputs if you have any!
     
  3. madaboutlinux

    madaboutlinux Well-Known Member

    Joined:
    Jan 24, 2005
    Messages:
    1,052
    Likes Received:
    2
    Trophy Points:
    38
    Location:
    Earth
    Check the Apache configuration file, the set a VirtualHost entry for the second Shared IP to point to the default directory of the domain and also place the "NameVirtualHost" entry just above that VirtualHost entry. Remove any other NameVirtualHost entry for the second IP and restart httpd.
     
Loading...

Share This Page