我有个很奇怪的问题。我正在使用Apache2,我已经设置了一个VirtualHost。它正在工作,但是经过几次请求(4-5)之后,我得到403个错误。在我等待10-20秒后,页面又开始工作了。
这是我的VirtualHost记录。
<VirtualHost *:80>
ServerAdmin info@the-host.com
ServerName subdomain.the-host.com
DocumentRoot /var/www/vhosts/subdomain.the-host.com/current/web
ErrorLog /var/log/apache2/subdomain.the-host.com-error.log
CustomLog /var/log/apache2/subdomain.the-host.com-access.log combined
<Directory /var/www/vhosts/subdomain.the-host.com/current/web>
Options +ExecCGI
AllowOverride All
Allow from all
</Directory>
LogLevel warn
ServerSignature On
</VirtualHost>目录中有www-data:www-data所有者。
以下是日志中的错误
[Tue May 21 15:14:57 2013] [warn] [client 111.111.111.111] mod_fcgid: stderr: Empty module and/or action after parsing the URL "/favicon.ico" (/).
[Tue May 21 15:14:58 2013] [warn] [client 111.111.111.111] mod_fcgid: stderr: Empty module and/or action after parsing the URL "/favicon.ico" (/).
[Tue May 21 15:14:58 2013] [warn] [client 111.111.111.111] mod_fcgid: stderr: Empty module and/or action after parsing the URL "/favicon.ico" (/).
[Tue May 21 15:14:59 2013] [warn] [client 111.111.111.111] mod_fcgid: stderr: Empty module and/or action after parsing the URL "/favicon.ico" (/).
[Tue May 21 15:14:59 2013] [error] [client 111.111.111.111] client denied by server configuration: /var/www/vhosts/subdomain.the-host.com/current/web/favicon.ico
[Tue May 21 15:14:59 2013] [error] [client 111.111.111.111] client denied by server configuration: /var/www/vhosts/subdomain.the-host.com/current/web/favicon.ico
[Tue May 21 15:14:59 2013] [warn] [client 111.111.111.111] mod_fcgid: stderr: Empty module and/or action after parsing the URL "/favicon.ico" (/).
[Tue May 21 15:14:59 2013] [error] [client 111.111.111.111] client denied by server configuration: /var/www/vhosts/subdomain.the-host.com/current/web/favicon.ico
[Tue May 21 15:14:59 2013] [error] [client 111.111.111.111] client denied by server configuration: /var/www/vhosts/subdomain.the-host.com/current/web/es, referer: http://subdomain.the-host.com/es/leatid
[Tue May 21 15:15:00 2013] [error] [client 111.111.111.111] client denied by server configuration: /var/www/vhosts/subdomain.the-host.com/current/web/favicon.ico
[Tue May 21 15:15:00 2013] [warn] [client 111.111.111.111] mod_fcgid: stderr: Empty module and/or action after parsing the URL "/favicon.ico" (/).
[Tue May 21 15:15:00 2013] [warn] [client 111.111.111.111] mod_fcgid: stderr: Empty module and/or action after parsing the URL "/favicon.ico" (/).知道apache在4-5请求之后失败的原因吗?
发布于 2013-05-21 14:56:52
您的mod_fcgid后端进程可能在请求完成后立即停止。这不是一个正常的情况,所以你需要找出什么是导致fcgi死亡的根本原因,也许是脚本中的一些错误?我想这与/favicon.ico的动作有关,也许您的脚本无法正确处理404错误或类似的事情。
https://serverfault.com/questions/509533
复制相似问题