我的服务器之前一直正常运行,但现在出了些问题,我不确定是什么原因。
我收到了下面的错误信息,并且无法访问一些子域名。
我收到了下面的错误信息,并且无法访问一些子域名。
apache2: Could not reliably determine the server's fully qualified domain name, using 2001:.....:a669 for ServerName
[Sat Dec 14 21:20:36 2013] [warn] NameVirtualHost 0.0.0.0:80 has no VirtualHosts
...
[Sat Dec 14 21:20:36 2013] [warn] NameVirtualHost 0.0.0.0:80 has no VirtualHosts
Syntax OK
我尝试将ports.conf更改为Listen 80和Listen 0.0.0.0:80(请参见http://www.rackaid.com/resources/how-to-disable-ipv6-in-apache-server/)。
以下是我的一个虚拟主机文件。
NameVirtualHost 0.0.0.0:80
Listen 0.0.0.0:80
<VirtualHost 0.0.0.0:80>
ServerName www.domain.us
ServerAlias domain.us
ServerAdmin email@domain.us
DocumentRoot /home/valid_domain_path/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /home/valid_domain_path/www>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/www.domain.us.error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel info
CustomLog ${APACHE_LOG_DIR}/www.domain.us.access.log combined
000-default已正确链接。
Apache 2.2.22
谢谢,