【问题标题】:Apache Timeout Directive not working on amazon ec2Apache 超时指令不适用于亚马逊 ec2
【发布时间】:2012-10-30 00:53:11
【问题描述】:

我正在使用 Amazon Elastic Beans Talk,它为我的 php 应用程序创建了一个 EC2 实例

应用程序需要几分钟来处理一些工作,但发现 http 连接在 60 秒后关闭

虽然 php 脚本继续处理(最大时间限制设置为 0)但是 http 连接被关闭所以我没有收到任何输出

例如谷歌浏览器说

Error 324 (net::ERR_EMPTY_RESPONSE): The server closed the connection without sending any data.

我编辑了实例上的 /etc/httpd/conf/httpd.conf 文件并将超时从 60 更改为 300

然后重新启动实例,但连接仍然在 60 时关闭

可能是什么问题?

【问题讨论】:

    标签: apache amazon-ec2 timeout


    【解决方案1】:

    知道问题

    这不是 apached 问题,而是“弹性负载均衡器”在 60 秒无数据传输后关闭 http 连接

    是的,这很无聊,亚马逊不听电话把这个设置得更高

    https://forums.aws.amazon.com/thread.jspa?messageID=396594&#396594

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2014-05-28
    • 1970-01-01
    • 2013-11-24
    • 1970-01-01
    • 2015-10-22
    • 2015-01-23
    • 2015-07-06
    相关资源
    最近更新 更多