首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Apache服务器在两次请求后提供403个禁止错误。

Apache服务器在两次请求后提供403个禁止错误。
EN

Server Fault用户
提问于 2013-05-21 12:04:29
回答 1查看 1.9K关注 0票数 0

我有个很奇怪的问题。我正在使用Apache2,我已经设置了一个VirtualHost。它正在工作,但是经过几次请求(4-5)之后,我得到403个错误。在我等待10-20秒后,页面又开始工作了。

这是我的VirtualHost记录。

代码语言:javascript
复制
<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所有者。

以下是日志中的错误

代码语言:javascript
复制
[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请求之后失败的原因吗?

EN

回答 1

Server Fault用户

发布于 2013-05-21 14:56:52

您的mod_fcgid后端进程可能在请求完成后立即停止。这不是一个正常的情况,所以你需要找出什么是导致fcgi死亡的根本原因,也许是脚本中的一些错误?我想这与/favicon.ico的动作有关,也许您的脚本无法正确处理404错误或类似的事情。

票数 0
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/509533

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档