我正在尝试设置Nginx + Unicorn + Rails 3.Nginx还将提供一些静态和php项目。但是,当我打开网站时,我总能看到
400 Bad Request
Request Header Or Cookie Too Large
错误页面。访问中没有任何内容,也没有错误日志。
的/ etc / nginx的
nginx.conf https://gist.github.com/1117152
php.conf https://gist.github.com/1117154
drop.conf https://gist.github.com/1117158
的/ etc / nginx的/网站启用
https://gist.github.com/1117161
我被困在这里因为我在日志中看不到任何东西。
答案 0 :(得分:3)
答案 1 :(得分:3)
检查“large_client_header_buffers”。如果您的应用需要
,则可能需要使用更大的值答案 2 :(得分:0)
这在Google上占据了很高的位置,以便为处于相同情况的人们节省时间:
我在页面上包含了JavaScript FB_Init(Facebook),并且“cookie = true”产生了一个非常大的cookie。将此转为假是解决方案并解决了相同的消息。