上游太大 - nginx + codeigniter [英] Upstream too big - nginx + codeigniter

查看:131
本文介绍了上游太大 - nginx + codeigniter的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从Nginx得到这个错误,但似乎无法想象它!我使用codeigniter和我使用数据库的会话。所以我想知道如何标头可以太大。有没有反正检查标头是什么?或潜在地看到我可以做些什么来解决这个错误?

I am getting this error from Nginx, but can't seem to figure it out! I am using codeigniter and am using the database for sessions. So I'm wondering how the header can ever be too big. Is there anyway to check what the header is? or potentially see what I can do to fix this error?

如果您需要我提供任何配置文件或任何内容,请告诉我们,我会在您请求时更新

Let me know if you need me to put up any conf files or whatever and I'll update as you request them

2012/12/15 11:51:39 [error] 2007#0: *5778 upstream sent too big header while reading response header from upstream, client: 24.63.77.149, server: jdobres.xxxx.com, request: "POST /main/login HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "jdobres.xxxxx.com", referrer: "http://jdobres.xxxx.com/"

UPDATE

我在conf中添加了以下内容:

I added the following into conf:

proxy_buffer_size   512k;
proxy_buffers   4 512k;
proxy_busy_buffers_size   512k;

现在我仍然得到以下结果:

And now I still get the following:

2012/12/16 12:40:27 [error] 31235#0: *929 upstream sent too big header while reading response header from upstream, client: 24.63.77.149, server: jdobres.xxxx.com, request: "POST /main/login HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "jdobres.xxxx.com", referrer: "http://jdobres.xxxx.com/"


推荐答案

通常位于 /etc/nginx/nginx.conf nginx.conf 文件中的 http {} p>

Add this to your http {} of the nginx.conf file normally located at /etc/nginx/nginx.conf:

proxy_buffer_size   128k;
proxy_buffers   4 256k;
proxy_busy_buffers_size   256k;

然后将其添加到您的php位置块,这将位于您的vhost文件中查找块以位置〜.php $ {

Then add this to your php location block, this will be located in your vhost file look for the block that begins with location ~ .php$ {

fastcgi_buffer_size 128k;
fastcgi_buffers 4 256k;
fastcgi_busy_buffers_size 256k;

这篇关于上游太大 - nginx + codeigniter的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆