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

1.400
open
5
2008-04-26
2008-04-26
Anonymous
No

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 *.

Discussion

  • osde8info

    osde8info - 2008-05-07

    Logged In: YES
    user_id=2081271
    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

    NameVirtualHost 10.10.10.10

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

    <VirtualHost 10.10.10.10>
    ...
    </VirtualHost>

    <VirtualHost 10.10.10.10>
    ...
    </VirtualHost>

     
  • 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.