Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/53.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 仅在Chrome中找到完整的302_Ruby On Rails_Nginx - Fatal编程技术网

Ruby on rails 仅在Chrome中找到完整的302

Ruby on rails 仅在Chrome中找到完整的302,ruby-on-rails,nginx,Ruby On Rails,Nginx,当我使用Chrome进行查询时,它会显示Rails上的默认异常页面 我查了一下Rails日志,它显示了完成的302,没有任何详细的线索 我的环境基于Nginx、Puma、AWS-ELB Redirected to https://lazyair.co/flights/index?end_date=2016-05-18&from=TAIPEI&start_date=2016-05-13&to=NAGOYA Completed 302 Found in 11ms Cache

当我使用Chrome进行查询时,它会显示Rails上的默认异常页面

我查了一下Rails日志,它显示了
完成的302
,没有任何详细的线索

我的环境基于Nginx、Puma、AWS-ELB

Redirected to https://lazyair.co/flights/index?end_date=2016-05-18&from=TAIPEI&start_date=2016-05-13&to=NAGOYA
Completed 302 Found in 11ms
Cache write: _session_id:901205aab7086083365c060e437ee91f ({:expires_in=>1 month})

通过在nginx.conf中添加这些行,问题得到了解决

然而,我不知道原因

    proxy_buffers 8 16k;
    proxy_buffer_size 32k;
nginx.conf
通过在nginx.conf中添加这些行,问题得到了解决

然而,我不知道原因

    proxy_buffers 8 16k;
    proxy_buffer_size 32k;
nginx.conf