In the process of trying to enable suexec module I starting getting these warnings (when I restarted apache). I get them when suexec is enabled & disabled:
* Restarting web server apache2[Wed Oct 05 01:29:40 2011] [warn] NameVirtualHost 12.345.67.89:443 has no VirtualHosts... waiting [Wed Oct 05 01:29:41 2011] [warn] 12.345.67.89:443 has no VirtualHosts...done.
I’m running Ubuntu 10.04, Apache2.2, PHP, MYSQL…
I’m running one site via https:// with a signed cert, ssl, etc, along with several other non-encrypted sites. This was previously working fine, but now (since I restarted the server after trying to enable suexec) I receive the above errors. If the *:443 virtual host is enabled, apache will not restart, and will not serve anything. If I disable the *:443 virtualhost, apache will not restart, and won’t serve any of the domains I am hosting.
The only thing I messed with, except the suexec configuration (via command line), was the sites-enabled config file for the ssl-enabled domain, which looks like this:
ServerAdmin [email protected] ServerName mysite.com ServerAlias www.mysite.com DocumentRoot /srv/www/mysite.com/public_html/ ErrorLog /srv/www/mysite.com/logs/error.log CustomLog /srv/www/mysite.com/logs/access.log combined SSLEngine On SSLCertificateFile /etc/apache2/ssl/mysite.com.crt ServerAdmin [email protected] ServerName mysite.com ServerAlias www.mysite.com DocumentRoot /srv/www/mysite.com/public_html/ ErrorLog /srv/www/mysite.com/logs/error.log CustomLog /srv/www/mysite.com/logs/access.log combined
Anyway, I’m not sure what’s going on here but I’m reluctant to dig too deep into the other apache / ssl configs since I didn’t change anything there and everything was working before.
Some more info:
Listen 12.345.67.89:80 Listen 443 Listen 443NameVirtualHost 12.345.67.89:443
/etc/apache2/sites-enabled/000-default makes no mention of port 443
… nor does
This warning comes up because you define a
12.345.67.89:443 but there is no
. So, change to
NameVirtualHost *:443, it will go away.