- 论坛徽章:
- 0
|
修改虚拟主机配置后启动apache出错,提示如下:
freebsd# /usr/local/sbin/httpd -k start
Syntax error on line 1 of /usr/local/etc/apache22/extra/httpd-vhosts.conf:
Invalid command '\xef\xbb\xbf#', perhaps misspelled or defined by a module not included in the server configuration
下面是httpd-vhosts.conf的前半部分:
# Virtual Hosts
#
# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:http://httpd.apache.org/docs/2.2/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.
#
# 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.
#
看不出第一行有什么问题。请高手指教! |
|