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 *.
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>
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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>
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.