我想在一台服务器上托pipe多个域。 所以,我遵循这篇文章的每一个步骤。 我将每个文件的所有权更改为www-data:www-data ,并将每个文件权限更改为0777
每当我尝试访问http://mydomain.com/index.html ,事实certificate是“错误403禁止”,当我看着error.log,它说:“客户端拒绝服务器configuration:”
从你的configuration,你有:
DocumentRoot /var/www/XXXXXX.com
但是,不能假定访问目录。 您应该授予访问权限,以便为其提供资源。
在同一个<VirtualHost>块中添加一个像这样的configuration:
<Directory /var/www/XXXXXX.com> Order Allow,Deny Allow from all </Directory>