#3109 mixing * ports and non-* ports with a NameVirtualHost addres


I followed the guide line by line and this keeps showing up in my apache logs. I've been through every file in /etc/apache2/ and there is nothing with Virtualhost *.


  • osde8info

    osde8info - 2008-05-07

    Logged In: YES
    Originator: NO

    after using webmin you may have to edit httpd.conf manually !

    0) use
    # httpd -S to verify httpd.conf BEFORE reloading/restarting apache
    1) CHECK NameVirtualHost is a single IP address (without any port)
    2) CHECK VirtualHost also specifies a single IP address (without any port)
    3) CHECK that the very FIRST NameVirtualHost you create in webmin points to a default site
    (since all unmatched vhosts default to going to your FIRST vhost site

    # egrep "NameVirt|VirtualHost" httpd.conf


    DocumentRoot "/var/www/html"
    ServerName default.default
    <Directory "/var/www/html">
    allow from all
    Options +Indexes



  • LIS Colo Svcs

    LIS Colo Svcs - 2009-02-12

    I got this same error using Webmin 1.450 on CentOS 5.2 with apache 2.2.3. Turns out that my NameVirtualHost statements had the IP without the port # appended (i.e. NameVirtualHost xxx.xxx.xxx.xxx) while my <VirtualHost> containers did have the port number (i.e. <VirtualHost xxx.xxx.xxx.xxx:80>. Appending the port number to the NameVirtualHost ips manually fixed it. However, this inconsistency does appear to be a bug of sorts in the apache module of Webmin, as that is how it set things up.


Log in to post a comment.