当我将以下行添加到 时/etc/apache2/apache2.conf
,我在重新启动 apache 后收到以下错误:
Include
/usr/share/doc/apache2.2-common/examples/apache2/extra/httpd-vhosts.conf
Run Code Online (Sandbox Code Playgroud)
[Mon Jun 14 12:16:47 2010] [error] VirtualHost *:80 -- 不支持将 * 端口和非 * 端口与 NameVirtualHost 地址混合,结果未定义 [Mon Jun 14 12:16:47 2010] ] [警告] NameVirtualHost *:80 没有 VirtualHosts
这是我的 httpd-vhosts.conf 文件:
#
# Use name-based virtual hosting.
#
NameVirtualHost *:80
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or …
Run Code Online (Sandbox Code Playgroud)