apache配置https和http的时候You don't have permission to access / on this server.

You don't have permission to access / on this server.

是由于没有设置访问目录

今天配置httpd-ssl.conf的时候  发现这个问题

由于默认的https-ssl.conf里面只有virtualhost

没有Directory

所以在virtualhost 里面追加

<Directory "/data/wwwroot/www/">
SetOutputFilter DEFLATE
Options FollowSymLinks ExecCGI
Require all granted
AllowOverride All
Order allow,deny
Allow from all
DirectoryIndex index.html index.php
</Directory>
原文地址:https://www.cnblogs.com/baker95935/p/9103602.html