在日志中我发现了下一个错误:
[Thu Jun 01 14:40:44 2017] [error] [client 12.34.567.899] client denied by server configuration: /home/users/s/user123/domains/site.com/
我有2个.htaccess文件:
/domains/site.com/public/.htaccess
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ /$1 [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
</IfModule>
/domains/site.com/.htaccess
RewriteEngine on
RewriteCond %{REQUEST_URI} !^public
RewriteRule ^(.*)$ public/$1 [L]
为什么会出现此错误以及如何解决?
最奇怪的是这个错误随机出现。我的意思是,在一瞬间网站可以停止响应,然后,几分钟后继续工作。