在决定重新安装ruby/rails/mongrel之前,我已经设置了一个正确工作的mongrel_rails集群。
当我访问这个网站时,我可以得到一个输出,但是我获得的是页面源,而不是解析的html文件.
据我所知,返回的标题不正确:
Date: Sat, 28 Aug 2010 17:19:21 GMT
Content-Length: 17374
Keep-Alive: timeout=2, max=100
Connection: Keep-Alive
Content-Type: text/plain
200 OK当我收到类似的信息时(由一个瘦实例返回)
Date: Sat, 28 Aug 2010 17:20:32 GMT
Server: thin 1.2.7 codename No Hup
Etag: "48db41ed4b0969cd6239c36dec57198d"
Content-Type: text/html; charset=utf-8
X-Runtime: 1483
Content-Length: 5250
Cache-Control: private, max-age=0, must-revalidate
200 OK在mongrel/apache中有什么设置(mongrel在代理后面)我应该修改以修复这个问题吗?
相关宝石安装版本: mongrel (1.1.5) mongrel_cluster (1.0.5) rails (2.3.8,2.3.5) thin (1.2.7)
发布于 2011-03-08 04:04:12
通过使用提供了@ https://rails.lighthouseapp.com/projects/8994/tickets/4690的解决方案来解决这个问题。
马修·登纳2010年6月25日@中午12:15
通过在第80行周围添加以下两行(到lib/mongrel/cgi.rb ):
@head['cookie'] = options['cookie'] if options['cookie']
options.delete('cookie')在此之前:
REMOVED_KEYS.each {|k| options.delete(k) }https://serverfault.com/questions/175671
复制相似问题