vhosts 由 puppetlabs-apache 模块管理,我无法使用 www 访问网站,但不用 www 就可以。当我使用 www 时,我得到一个空白页,没有任何错误,也没有任何日志,非 www 工作正常。
这是该网站的 conf 文件
# ************************************
# Vhost template in module puppetlabs-apache
# Managed by Puppet
# ************************************
<VirtualHost *:80>
ServerName www.example.com
## Vhost docroot
DocumentRoot "/var/www/vhosts/example.com/httpdocs"
## Directories, there should at least be a declaration for /var/www/vhosts/example.com/httpdocs
<Directory "/var/www/vhosts/example.com/httpdocs">
AllowOverride ALL
Order allow,deny
Allow from all
AddHandler x-httpd-php .php .php3 .php4 .php5
suPHP_UserGroup jasonnarog jasonnarog
</Directory>
## Load additional static includes
## Logging
ErrorLog "/var/www/vhosts/example.com/logs/www.example.com_error.log"
ServerSignature Off
CustomLog "/var/www/vhosts/example.com/logs/www.example.com_access.log" combined
## Server aliases
ServerAlias example.com
suPHP_AddHandler x-httpd-php
suPHP_Engine on
</VirtualHost>
我尝试切换别名和服务器名称,但得到相同的结果。