baker95935

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

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>

 

posted on 2018-05-29 10:01  baker95935  阅读(306)  评论(0)    收藏  举报