Apache:VirtualHost *:80 - 不支持混合使用 NameVirtualHost 地址的 * 端口和非 * 端口

Apache:VirtualHost *:80 - 不支持混合使用 NameVirtualHost 地址的 * 端口和非 * 端口

当我将下面的行添加到 /etc/apache2/apache2.conf 时,重新启动 apache 时出现以下错误:

Include
/usr/share/doc/apache2.2-common/examples/apache2/extra/httpd-vhosts.conf

[2010 年 6 月 14 日星期一 12:16:47] [错误] VirtualHost *:80 - 不支持将 * 端口和非 * 端口与 NameVirtualHost 地址混合,否则将导致未定义的结果 [2010 年 6 月 14 日星期一 12:16:47] [警告] 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 ServerAlias in any <VirtualHost> block.

<VirtualHost *:80>
   ServerName tirengarfio.com
   DocumentRoot /var/www/rs3

   <Directory /var/www/rs3>
      AllowOverride All
      Options MultiViews Indexes SymLinksIfOwnerMatch
      Allow from All
   </Directory>

   Alias /sf /var/www/rs3/lib/vendor/symfony/data/web/sf
   <Directory "/var/www/rs3/lib/vendor/symfony/data/web/sf">
    AllowOverride All
    Allow from All
   </Directory>
</VirtualHost>

任何想法?

问候

哈维

相关内容