Can someone translate this HTTPD error?

This log is from when I start the webserver from server app, I have two virtual host created that should work on port 80 and the default that runs on port 443.




Aug 25 14:11:52 myserver servermgrd[36879]: servermgr_web: enabling

Aug 25 14:11:55 myserver com.apple.launchd.peruser.70[37300]: Background: Bug: launchd_core_logic.c:3063 (24984):3

Aug 25 14:11:55 myserver com.apple.launchd.peruser.70[37300]: Background: job_mig_intran() was confused by PID 37105 UID 70 EUID 70 Mach Port 0x1a07:

Aug 25 14:11:55 myserver com.apple.launchd.peruser.70[37300]: Bug: launchd_core_logic.c:8528 (24984):3: j != NULL

Aug 25 14:11:55 myserver org.apache.httpd[37303]: [Thu Aug 25 14:11:55 2011] [warn] NameVirtualHost 83.246.3.34:80 has no VirtualHosts

Aug 25 14:11:56 myserver servermgrd[36879]: servermgr_web: Disabling port forwarding for port 80

Aug 25 14:11:57: --- last message repeated 1 time ---

Aug 25 14:11:57 myserver servermgrd[36879]: servermgr_web: waiting for pid, file /private/var/run/httpd.pid.

Aug 25 14:11:57 myserver org.apache.httpd[37310]: [Thu Aug 25 14:11:57 2011] [warn] _default_ VirtualHost overlap on port 80, the first has precedence

Aug 25 14:11:57 myserver org.apache.httpd[37310]: [Thu Aug 25 14:11:57 2011] [warn] _default_ VirtualHost overlap on port 443, the first has precedence

Aug 25 14:11:57 myserver com.apple.launchd[1] (org.apache.httpd[37310]): Exited with code: 1

Aug 25 14:11:57 myserver com.apple.launchd[1] (org.apache.httpd): Throttling respawn: Will start in 10 seconds

Aug 25 14:11:58 myserver servermgrd[36879]: servermgr_web: waiting for pid, file /private/var/run/httpd.pid.

Aug 25 14:12:02: --- last message repeated 3 times ---

Aug 25 14:12:02 myserver servermgrd[36879]: servermgr_web: Enabling port forwarding for port 80

Aug 25 14:12:02: --- last message repeated 1 time ---

Aug 25 14:12:02 myserver servermgrd[36879]: servermgr_web: Cannot confirm Apache was started; missing or invalid pid file

Aug 25 14:12:07 myserver org.apache.httpd[37321]: [Thu Aug 25 14:12:07 2011] [warn] _default_ VirtualHost overlap on port 80, the first has precedence

Aug 25 14:12:07 myserver org.apache.httpd[37321]: [Thu Aug 25 14:12:07 2011] [warn] _default_ VirtualHost overlap on port 443, the first has precedence

Aug 25 14:12:07 myserver com.apple.launchd[1] (org.apache.httpd[37321]): Exited with code: 1

Aug 25 14:12:07 myserver com.apple.launchd[1] (org.apache.httpd): Throttling respawn: Will start in 10 seconds

Aug 25 14:12:17 myserver org.apache.httpd[37325]: [Thu Aug 25 14:12:17 2011] [warn] _default_ VirtualHost overlap on port 80, the first has precedence

Aug 25 14:12:17 myserver org.apache.httpd[37325]: [Thu Aug 25 14:12:17 2011] [warn] _default_ VirtualHost overlap on port 443, the first has precedence

Posted on Aug 25, 2011 4:17 AM

Reply
6 replies

Aug 25, 2011 4:21 AM in response to Georgemaxim

Also in /private/var/log/apache2/error_log I get these errors:


[Thu Aug 25 14:13:09 2011] [error] Oops, no RSA or DSA server certificate found for 'myvirtual.mydomain.com:0'?!

[Thu Aug 25 14:13:19 2011] [error] Oops, no RSA or DSA server certificate found for 'myvirtual.mydomain.com:0'?!

[Thu Aug 25 14:13:30 2011] [error] Oops, no RSA or DSA server certificate found for 'myvirtual.mydomain.com:0'?!

[Thu Aug 25 14:13:40 2011] [error] Oops, no RSA or DSA server certificate found for 'myvirtual.mydomain.com:0'?!

[Thu Aug 25 14:13:50 2011] [error] Oops, no RSA or DSA server certificate found for 'myvirtual.mydomain.com:0'?!

[Thu Aug 25 14:14:00 2011] [error] Oops, no RSA or DSA server certificate found for 'myvirtual.mydomain.com:0'?!

[Thu Aug 25 14:14:11 2011] [error] Oops, no RSA or DSA server certificate found for 'myvirtual.mydomain.com:0'?!

[Thu Aug 25 14:14:21 2011] [error] Oops, no RSA or DSA server certificate found for 'myvirtual.mydomain.com:0'?!

[Thu Aug 25 14:14:31 2011] [error] Oops, no RSA or DSA server certificate found for 'myvirtual.mydomain.com:0'?!

[Thu Aug 25 14:14:42 2011] [error] Oops, no RSA or DSA server certificate found for 'myvirtual.mydomain.com:0'?!

[Thu Aug 25 14:14:52 2011] [error] Oops, no RSA or DSA server certificate found for 'myvirtual.mydomain.com:0'?!

[Thu Aug 25 14:15:02 2011] [error] Oops, no RSA or DSA server certificate found for 'myvirtual.mydomain.com:0'?!

[Thu Aug 25 14:15:12 2011] [error] Oops, no RSA or DSA server certificate found for 'myvirtual.mydomain.com:0'?!

[Thu Aug 25 14:15:23 2011] [error] Oops, no RSA or DSA server certificate found for 'myvirtual.mydomain.com:0'?!

Oct 19, 2011 2:42 PM in response to Georgemaxim

similar problem here. The web server goes down for a few minutes at a time, many times a day. (Mac mini 10.7.2)


Oct 19 23:25:22 myserver org.apache.httpd[25909]: [Wed Oct 19 23:25:22 2011] [warn] NameVirtualHost *:443 has no VirtualHosts

Oct 19 23:25:22 myserver org.apache.httpd[25909]: [Wed Oct 19 23:25:22 2011] [warn] NameVirtualHost *:80 has no VirtualHosts

Oct 19 23:25:23 myserver servermgrd[25372]: servermgr_web: Disabling port forwarding for port 443

Oct 19 23:25:23: --- last message repeated 1 time ---

Oct 19 23:25:23 myserver servermgrd[25372]: servermgr_web: Disabling port forwarding for port 80

Oct 19 23:25:24: --- last message repeated 9 times ---

Oct 19 23:25:24 myserver servermgrd[25372]: servermgr_web: waiting for pid, file /private/var/run/httpd.pid.

Oct 19 23:25:25 myserver servermgrd[25372]: servermgr_web: Enabling port forwarding for port 443

Oct 19 23:25:25: --- last message repeated 1 time ---

Oct 19 23:25:25 myserver servermgrd[25372]: servermgr_web: Enabling port forwarding for port 80

Oct 19 23:25:55: --- last message repeated 9 times ---

Oct 19 23:25:59 myserver servermgrd[25372]: servermgr_web: enabling

Oct 19 23:26:07 myserver servermgrd[25372]: servermgr_web: Disabling port forwarding for port 443

Oct 19 23:26:07: --- last message repeated 1 time ---

Oct 19 23:26:07 myserver servermgrd[25372]: servermgr_web: Disabling port forwarding for port 80

Oct 19 23:26:08: --- last message repeated 9 times ---

Oct 19 23:26:08 myserver servermgrd[25372]: servermgr_web: waiting for pid, file /private/var/run/httpd.pid.

Oct 19 23:26:08 myserver org.apache.httpd[26001]: [Wed Oct 19 23:26:08 2011] [warn] NameVirtualHost *:443 has no VirtualHosts

Oct 19 23:26:08 myserver org.apache.httpd[26001]: [Wed Oct 19 23:26:08 2011] [warn] NameVirtualHost *:80 has no VirtualHosts

Oct 19 23:26:09 myserver servermgrd[25372]: servermgr_web: Enabling port forwarding for port 443

Oct 19 23:26:09: --- last message repeated 1 time ---

Oct 19 23:26:09 myserver servermgrd[25372]: servermgr_web: Enabling port forwarding for port 80

Oct 19 23:26:39: --- last message repeated 9 times ---

Oct 20, 2011 4:00 AM in response to Georgemaxim

Let's go to end of the universe!! step by step =)


Aug 25 14:11:55 myserver org.apache.httpd[37303]: [Thu Aug 25 14:11:55 2011] [warn] NameVirtualHost 83.246.3.34:80 has no VirtualHosts


That means that "below your NamedVirtualHost specification there is no Virtual Host defined"


VirtualHost are here to allow you to have multiple web pages below the same IP.

A common Virtual Host definition is:


NameVirtualHost *


<VirtualHost *>

ServerName www.domain.tld

DocumentRoot /www/domain

</VirtualHost>


<VirtualHost *>

ServerName www.otherdomain.tld

DocumentRoot /www/otherdomain

</VirtualHost>


Following your Log, you have a "NameVirtualHost 83.246.3.34:80" definition without any following "<VirtualHost 83.246.3.34:80>" directive.

All site's configuration files are in /etc/apache2/sites/


Aug 25 14:11:57 myserver org.apache.httpd[37310]: [Thu Aug 25 14:11:57 2011] [warn] _default_ VirtualHost overlap on port 80, the first has precedence

Aug 25 14:11:57 myserver org.apache.httpd[37310]: [Thu Aug 25 14:11:57 2011] [warn] _default_ VirtualHost overlap on port 443, the first has precedence


That two messages means the same, that "there are two identical VirtualHost definitions, so i'll use the first one"


That means that you have two "<VirtualHost XXX>" directives with the same or missing "ServerName" definition.


The Web Server a.k.a. Apache uses the "ServerName" to forward request to one or other definition.


Let's see an example with this missconfiguration:


NameVirtualHost 83.246.3.34:80


<VirtualHost 83.246.3.34:80>

ServerName www.domain.com

DocumentRoot /www/domain

</VirtualHost>


<VirtualHost 83.246.3.34:80>

ServerName www.domain.com

DocumentRoot /www/otherdomain

</VirtualHost>


... when a connection is made to www.domain.com resoults in going to 83.246.3.34 port 80

Then Apache doesn't know where to go (/www/domain or /www/otherdomain) so it will go to the first definition



Aug 25 14:11:57 myserver com.apple.launchd[1] (org.apache.httpd[37310]): Exited with code: 1

Aug 25 14:11:57 myserver com.apple.launchd[1] (org.apache.httpd): Throttling respawn: Will start in 10 seconds


This means "Apache process exit with errors, will try to restart it in 10 sec".

Note that previous errors should not make Apache process die.


Aug 25 14:11:58 myserver servermgrd[36879]: servermgr_web: waiting for pid, file /private/var/run/httpd.pid.

Aug 25 14:12:02 myserver servermgrd[36879]: servermgr_web: Cannot confirm Apache was started; missing or invalid pid file


The ".pid" file is just a text file with the process number in it (in this case, 36879).

This file helps other process to kill or restart the Apache's process if needed.


That say that "no .pid file was created, or invalid file was created, for example an empty one".

Stop the Web Server and check that the .pid file is not there (/private/var/run/httpd.pid).

Start the Web Server and check that the .pid file is there and has the propper content.


You can get the PID (Process ID) for a process performing a "ps" command from the command line:

#ps aux | grep http



make the force b with u!

Oct 20, 2011 4:27 AM in response to Georgemaxim

[Thu Aug 25 14:15:23 2011] [error] Oops, no RSA or DSA server certificate found for 'myvirtual.mydomain.com:0'?!



That means that "you have configured a SSL VirtualHost, and you have not defined the certificate to encrypt that!"


Disable the 443 port in apache, or the SSL itself, and the error should go away.

In fact, the domain which doesn't have the certificate is "myvirtual.mydomain.com:0", weird default missconfigured domain.....


Here I make my guess, has you started the Web Service without configuring anything? =)


You have to configure at least one VirtualHost before starting the Web Service, a.k.a. Apache.


This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Can someone translate this HTTPD error?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.