Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 对一个特定映像的请求在502错误网关和代理错误中结束_Ruby On Rails_Ruby_Apache_Mongrel_Redmine - Fatal编程技术网

Ruby on rails 对一个特定映像的请求在502错误网关和代理错误中结束

Ruby on rails 对一个特定映像的请求在502错误网关和代理错误中结束,ruby-on-rails,ruby,apache,mongrel,redmine,Ruby On Rails,Ruby,Apache,Mongrel,Redmine,我在Windows虚拟服务器上运行了基于RubyonRails的应用程序Redmine(基于BitNami Redmine包)。它运行Apache、Mongrel、Ruby和rails 当我在为一个HTML页面构建模板时,我请求一个名为/templates/mytemplate/images/bkg.jpg-大约15 KB大的静态图像资源-我收到一个502坏网关错误,大约有三分之二的请求。x (来源:) Apache的错误日志则包含 on Apr 12 22:50:33 2010] [erro

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

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


(来源:)

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知之甚少。谁能告诉我这可能是什么,我应该去哪里看


更新:仔细想想,这可能属于serverfault。如果你也这么认为的话,请迁移。

我重新安装了Rails,这就解决了问题