Apache Errors

Discussion in 'General' started by dayjahone, Jul 12, 2008.

  1. dayjahone

    dayjahone Member

    First of all, when I delete a mail forward for an email address, it continues to send it to that email. Does this take time to propagate? I restarted apache and ispConfig, but it still does it...which brings us to the second issue. I got the following warnings when I restarted apache:

    Code:
    [Sat Jul 12 11:16:52 2008] [warn] VirtualHost 172.16.10.26:443 overlaps with VirtualHost 172.16.10.26:443, the first has precedence, perhaps you need a NameVirtualHost directive
    [Sat Jul 12 11:16:52 2008] [warn] VirtualHost 172.16.10.26:443 overlaps with VirtualHost 172.16.10.26:443, the first has precedence, perhaps you need a NameVirtualHost directive
    [Sat Jul 12 11:16:52 2008] [warn] VirtualHost 172.16.10.26:443 overlaps with VirtualHost 172.16.10.26:443, the first has precedence, perhaps you need a NameVirtualHost directive
    [Sat Jul 12 11:16:52 2008] [warn] VirtualHost 172.16.10.26:443 overlaps with VirtualHost 172.16.10.26:443, the first has precedence, perhaps you need a NameVirtualHost directive
    [Sat Jul 12 11:16:52 2008] [warn] NameVirtualHost 172.16.10.26:80 has no VirtualHosts
    [Sat Jul 12 11:16:52 2008] [warn] NameVirtualHost 172.16.10.26:80 has no VirtualHosts
    [Sat Jul 12 11:16:52 2008] [warn] NameVirtualHost 172.16.10.26:80 has no VirtualHosts
    [Sat Jul 12 11:16:52 2008] [warn] NameVirtualHost 172.16.10.26:80 has no VirtualHosts
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Please check that you dont have more then one include for Vhost_ispconfig.conf file. Also these warmings have nothing to do with your mail problem.

    For the mail problem, please look into the ispconfig.log file for errors.
     
  3. dayjahone

    dayjahone Member

    How do I check that?
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Open the apache2.conf ot httpd.conf file, go to the end of that file and count the number of includes for the Vhost_ispconfig.conf file.
     
  5. dayjahone

    dayjahone Member

    At the end of /etc/apache2/httpd.conf there are what appear to be five of the same thing:

    Code:
    ###############ispconfig_log###############
    LogFormat "%v||||%b||||%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined_ispconfig
    CustomLog "|/root/ispconfig/cronolog --symlink=/var/log/httpd/ispconfig_access_log /var/log/httpd/ispconfig_access_log_%Y_%m_%d" combined_ispconfig
    
    <Directory /home/www/*/web>
        Options +Includes -Indexes
        AllowOverride None
        AllowOverride Indexes AuthConfig Limit FileInfo
        Order allow,deny
        Allow from all
        <Files ~ "^\.ht">
        Deny from all
        </Files>
    </Directory>
    
    <Directory /home/www/*/user/*/web>
        Options +Includes -Indexes
        AllowOverride None
        AllowOverride Indexes AuthConfig Limit FileInfo
        Order allow,deny
        Allow from all
        <Files ~ "^\.ht">
        Deny from all
        </Files>
    </Directory>
    
    <Directory /home/www/*/cgi-bin>
        Options ExecCGI -Indexes
        AllowOverride None
        AllowOverride Indexes AuthConfig Limit FileInfo
        Order allow,deny
        Allow from all
        <Files ~ "^\.ht">
        Deny from all
        </Files>
    </Directory>
    
    Include /etc/apache2/vhosts/Vhosts_ispconfig.conf
    Is this what you mean?

    I also ran this like you asked before:

    Code:
    # ls /etc/apache2/vhosts/
    .
    ..
    Vhosts_ispconfig.conf
    Vhosts_ispconfig.conf_24-08-07_14-19-38
    Vhosts_ispconfig.conf_25-08-07_15-21-59
    Vhosts_ispconfig.conf_25-08-07_15-25-21
    Vhosts_ispconfig.conf~
     
    Last edited: Jul 14, 2008
  6. falko

    falko Super Moderator Howtoforge Staff

    How often do you see the line Include /etc/apache2/vhosts/Vhosts_ispconfig.conf in /etc/apache2/apache2.conf?
     
  7. dayjahone

    dayjahone Member

    I only have an httpd.conf file, but the line you mentioned is in that file five times as part of the chunk of text in my earlier post.
     
  8. falko

    falko Super Moderator Howtoforge Staff

    Remove four of these chunks so that only one is left and restart Apache.
     

Share This Page