Apache-ErrorLog not allowed here-解决办法

通常能查出是这个错误,说明你至少知道看系统日志。这个问题主要是由于vhost规则写错引起的,解决办法就是把规则写对。下面附上一个windows下的实例,自己参悟吧:

<VirtualHost *:80>
ServerName demo.xxxx.com
DocumentRoot "F:\APMServ5.2.6\www\webfiles"
<Directory "F:\APMServ5.2.6\www\webfiles">
Options All FollowSymLinks IncludesNOEXEC Indexes
DirectoryIndex index.html index.htm default.htm index.php default.php index.cgi default.cgi index.shtml index.aspx default.aspx
AllowOverride all
Order Deny,Allow
Allow from all
</Directory>
ErrorLog "F:\APMServ5.2.6\Apache\logs\demo.xxxx.com-error.log"
CustomLog "F:\APMServ5.2.6\Apache\logs\demo.xxxx.com-Access.log" common
</VirtualHost>

未经允许不得转载:阿藏博客 » Apache-ErrorLog not allowed here-解决办法

赞 (0) 打赏