apache2.4 以后配置相关

来源:互联网 发布:大数据盈利点 编辑:程序博客网 时间:2024/06/07 15:01

ttpd-vhosts.conf,在这里开启目录浏览功能Options Indexes FollowSymLinks。如果你没有开启目录浏览功能,然后网站下面有没有index.php等入口文件的话,会提示403错误。

以前的Allow from All 对应  Require all granted

          Deny from All 对应  Require all denied

如果发生错误没头绪,可以在httpd.conf中设置LogLevel debug,这样在Apache2\logs下有localhost_error.log的日志文件,会有错误信息。

0 0
原创粉丝点击