當我重新加載的apache的顯示以下消息:警告了NameVirtualHost *:443具有沒有VirtualHosts
Reloading web server config: apache2[Tue Dec 30 10:24:04 2014] [warn] NameVirtualHost *:443 has no VirtualHosts
我檢查ports.conf文件和配置如下:
[email protected]:/etc/apache2# cat ports.conf
# If you just change the port or add more ports here, you will likely also
# have to change the VirtualHost statement in
# /etc/apache2/sites-enabled/000-default
# This is also true if you have upgraded from before 2.2.9-3 (i.e. from
# Debian etch). See /usr/share/doc/apache2.2-common/NEWS.Debian.gz and
# README.Debian.gz
NameVirtualHost *:80
NameVirtualHost *:443
Listen 80
<IfModule mod_ssl.c>
# If you add NameVirtualHost *:443 here, you will also have to change
# the VirtualHost statement in /etc/apache2/sites-available/default-ssl
# to <VirtualHost *:443>
# Server Name Indication for SSL named virtual hosts is currently not
# supported by MSIE on Windows XP.
Listen 443
</IfModule>
<IfModule mod_gnutls.c>
Listen 443
</IfModule>
爲什麼會出現以下警告,我該如何解決?
http://httpd.apache.org/docs/2.4/mod/core.html#namevirtualhost – Deadooshka