大网数据广告活动
服务器运维问答

Apache2 100 seconds timeout

· 52CE 我爱测

I'm running an Apache2 server which redirects (virtualhost) to a tomcat server with a java application. If I call a big process directly on the tomcat server, it works fine (wget localhost:8080/...). If I call the same process th…

问题原文

原帖链接 · Fortega · CC BY-SA 3.0

I'm running an Apache2 server which redirects (virtualhost) to a tomcat server with a java application.

If I call a big process directly on the tomcat server, it works fine (wget localhost:8080/...). If I call the same process through the apache server (wget mydomain.com/...), I get a timeout after exactly 100 seconds.

In apache.conf, my timeout setting is 600. So it must be something else which causes this timeout. I have no idea where to look.

The following is the content of mods-enabled:

alias.conf       authn_file.load       authz_host.load  autoindex.load  deflate.load  env.load      mime.load         pagespeed.conf  php5.load   proxy_http.load  rewrite.load   status.conf
alias.load       authz_default.load    authz_user.load  cgi.load        dir.conf      expires.load  negotiation.conf  pagespeed.load  proxy.conf  reqtimeout.conf  setenvif.conf  status.load
auth_basic.load  authz_groupfile.load  autoindex.conf   deflate.conf    dir.load      mime.conf     negotiation.load  php5.conf       proxy.load  reqtimeout.load  setenvif.load

where/how should I look for this timeout value?

update: answers to questions below

  • if I do curl -I mydomain.com, it just hangs for 100 seconds
  • grepping for 100 or 100000 (millisecs) does not give any relevant results
  • I'm pretty sure it's 100 seconds, because of the timestamps in wget mydomain.com:

    ---2014-09-29 09:41:38 http://...

    2014-09-29 09:43:18 ERROR 524: Origin Time-out.

已采纳解答

原帖链接 · Fortega · CC BY-SA 3.0

Answering my own question here, for future reference (and to help others).

The problem was Cloudflare. Although they don't mention a timeout anywere, disabling the cloudflare service removed the 100 seconds timeout. I will contact CloudFlare and see what they say about this. I will update this answer as soon as I get an answer.

I'm sorry for waisting your time, Grumpy and JakeGould :-s

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2014-09-26)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。