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.

VirtualHost directive

Discussion in 'General Discussion' started by wisenerl, Jan 14, 2007.

  1. wisenerl

    wisenerl Member

    Joined:
    Sep 27, 2006
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    I am getting this error in apache, any ideas how to fix?

    [warn] VirtualHost 69.65.126.199:443 overlaps with VirtualHost 69.65.126.199:443, the first has precedence, perhaps you need a NameVirtualHost directive
     
  2. adept2003

    adept2003 Well-Known Member

    Joined:
    Aug 11, 2003
    Messages:
    283
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    ~ "/(extra|special)/data"
    Check your httpd.conf for duplicate entries on that IP. Quite often this error occurs when you change a sites IP address & assign a different site to that same IP.
     
  3. Stefaans

    Stefaans Well-Known Member

    Joined:
    Mar 5, 2002
    Messages:
    451
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Vancouver, Canada
    There are two issues here:

    In principle, anytime you want to run more than one website on the same IP address, you need to have a NameVirtualHost directive. Edit your httpd.conf, and add the following before your first VirtualHost directive:

    Code:
    NameVirtualHost 69.65.126.199:443
    This brings me to the second issue. You seem to be trying to run more than one secure site (port 443) on the same IP address. I guess nothing prevents you from using port 443 multiple times on the same IP, but you will not success in enabling SSL for both. One simply cannot have more than one certificate installed on the same IP.
     
Loading...

Share This Page