504 Gateway Time-out 服务器没有及时响应.如何解决? [英] 504 Gateway Time-out The server didn't respond in time. How to fix it?
问题描述
客户端请求下载压缩的日志文件,使用 Ext.js 在嵌入式 上提交表单iframe
.请求已发送到服务器,该服务器具有 Apache 和 JBoss 6.servlet 压缩日志文件,执行一些数据库操作并返回压缩文件.
The client requested to download a compressed log file, using Ext.js a form submission on an embedded iframe
. Request was sent to server, which has Apache and JBoss 6. The servlet compresses log files, do some database operation and returns the compressed file.
恰好在 2 分钟后,在浏览器网络面板上看到 504 网关超时服务器没有及时响应消息.如何修复此错误?
Exactly after 2 min, the 504 Gateway Time-out The server didn't respond in time message is seen at the browser net panel. How to fix this error?
推荐答案
servlet 需要很长时间来压缩日志文件,Apache 的超时设置为 2 分钟.
The servlet was taking a long time to compress the log files, and Apache's timeout was set to 2min.
通过增加 TimeOut Directive 来修复错误httpd.conf 文件:
The error was fixed by increasing the TimeOut Directive on the httpd.conf file:
#
# Timeout: The number of seconds before receives and sends time out.
#
##Timeout 120
Timeout 600
这篇关于504 Gateway Time-out 服务器没有及时响应.如何解决?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!