On November 30, 2011 14:16 , Stormy <storm...@stormy.ca> wrote:
Just finished setting up a new server (Ubuntu 11.10) and copied/pasted
all conf files for Apache2 from an older fully functional server
(Ubuntu 10.04). All the virtual hosts are functioning, but on apache2
restart I get the following warning (the old server gives no warnings,
just a clean restart):
* Restarting web server
apache2 [Wed Nov 30
14:02:12 2011] [error] (EAI 2)Name or service not known: Failed to
resolve server name for 127.0.0.0 (check DNS) -- or specify an
explicit ServerName
Do you have a ServerName directive in every one of your virtual hosts?
Does each one specify a valid, fully qualified domain name?
[Wed Nov 30 14:02:12 2011] [warn] NameVirtualHost 192.168.0.90:80 has
no VirtualHosts
[Wed Nov 30 14:02:12 2011] [warn] NameVirtualHost 192.168.0.90:80 has
no VirtualHosts
It seems like you have a "NameVirtualHost 192.168.0.90" directive in one
of your configuration files. Do you have virtual hosts are assigned IP
address? If not, then remove this NameVirtualHost directive to fix the
warning. Or, if you have a missing virtual host, then copy it's
configuration from the old server to the new server.
The only differences that I can find between the two installations
(used a "default" install on both) using apache2 -V are that (a) the
new version is 2.2.17 (old 2.2.16) and that (b) the new one gives me
-D APACHE_MPM_DIR="server/mpm/worker" while the old gives
-D APACHE_MPM_DIR="server/mpm/prefork"
Is there anything in 2.2.17 c/w .16 or in the worker/prefork that
would explain this?
It's unlikely that the choice of MPM is the cause of the warnings you
are seeing: MPMs implement how requests are accepted and handled
between multiple child processes and/or threads.
See https://httpd.apache.org/docs/2.2/mpm.html
And is there a quick method of changing worker to prefork?
Refer to the Ubuntu documentation to see if they provide such a method.
In general, MPMs are compiled into the httpd binary and you'd need to
switch to a httpd binary that provides the worker MPM and then change
the worker MPM directives in your configuration files back to the
prefork MPM configuration directives that you had before upgrading.
--
Mark Montague
m...@catseye.org
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
" from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org