apache restart error

Discussion in 'Server Operation' started by bschultz, Jun 26, 2009.

  1. bschultz

    bschultz Member

    I've just installed a cross between the "perfect Lenny for ISPC 2" and "Lenny with virtual users and mysql". I couldn't install the password patch for Squirrelmail since their server got hacked...but this error should have anything to do with that.

    I've installed Apache2 and then copied over my old config file with vhosts config...and I get this error upon an /etc/init.d/apache2 restart

    All the sites appear to be working...so I'm not sure where this is coming from, or how important it is...but how can I fix this?

    Thanks.
     
  2. topdog

    topdog Active Member

    You need atleast one virtualhost if you enable virtual hosting.
     
  3. bschultz

    bschultz Member

    I have seven in there...

    here's the line in the main apache config to include the vhosts file

    Here's the vhost.conf

     
  4. topdog

    topdog Active Member

    Thats correct but you have NONE that are using
    Code:
    NameVirtualHost *:80
    in their definition.
     
  5. bschultz

    bschultz Member

    Which one is supposed to get that code? I tired the first one...

    but I got a bunch of errors restarting apache that I had overlapping tags.

    Thanks.

    Brian
     
  6. topdog

    topdog Active Member

    That could be because you are using multiple NameVirtualHost directives
     
  7. bschultz

    bschultz Member

    there's only one...right at the top of the vhosts.conf file
     
  8. bschultz

    bschultz Member

    I got it...

    turns out, there was another NameVirtualHost line in ports.conf ...comment that out, and all is working.

    Thanks.
     

Share This Page