504 Gateway Time-out The server didn't respond in time. How to fix it?

让人想犯罪 __ 提交于 2019-12-20 10:09:34

问题


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.

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?


回答1:


The servlet was taking a long time to compress the log files, and Apache's timeout was set to 2min.

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



回答2:


Check your apache error logs. This can also be caused if the file size limit is set too low.




回答3:


In my case more simply. I forgot to disable the Proxy extention in the browser.



来源:https://stackoverflow.com/questions/26742580/504-gateway-time-out-the-server-didnt-respond-in-time-how-to-fix-it

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!