【问题标题】:Request for one particular image ends in 502 bad gateway and proxy error对一张特定图像的请求以 502 bad gateway and proxy error 结束
【发布时间】:2011-02-07 04:44:26
【问题描述】:

我在 Windows 虚拟服务器上运行基于 Ruby on Rails 的应用程序 Redmine(基于 BitNami redmine 包)。它运行 Apache、Mongrel、Ruby 和 rails。

当我在一个 HTML 页面中为其构建模板时,我请求了一个名为 /templates/mytemplate/images/bkg.jpg 的静态图像资源 - 大约 15 KB 大 - 我收到了大约三分之二的 502 Bad gateway 错误。 x


(来源:pekkagaiser.com

Apache 的错误日志包含

on Apr 12 22:50:33 2010] [error] (620018)APR does not understand this error code:
proxy: pass request body failed to 127.0.0.1:3001 (127.0.0.1)

[Mon Apr 12 22:50:33 2010] [error] proxy: pass request body failed to 127.0.0.1:3001
(127.0.0.1) from 78.34.240.113 ()

只针对那一种资源。其他更大的图像和 CSS 样式表每次加载都没有问题。

奇怪的是,只有当图像在 CSS 样式表中用作背景图像时才会发生这种情况。即使缓存关闭,在浏览器中重复直接访问图像也可以正常工作。这可能是推荐人问题吗?但我不知道怎么做。

我对 Ruby 和 Rails 知之甚少。谁能告诉我这可能是什么以及我应该去哪里看?

更新:再想一想,这可能属于服务器故障。如果你有同样的想法,请移走。

【问题讨论】:

    标签: ruby-on-rails ruby apache mongrel redmine


    【解决方案1】:

    我重新安装了 Rails 并解决了问题。

    【讨论】:

      猜你喜欢
      • 2014-03-05
      • 1970-01-01
      • 2019-05-25
      • 2022-12-14
      • 2020-11-12
      • 2013-08-04
      • 2019-06-14
      • 2013-09-05
      • 1970-01-01
      相关资源
      最近更新 更多