title: nginx big header response
body: <p>"upstream sent too big header while reading response header from upstream"</p>
  
  <p>I keep getting this when I try and do an authentication from facebook. I've increased my buffers:</p>
  
  <pre><code>proxy_buffer_size   256k;
  proxy_buffers   8 256k;
  proxy_busy_buffers_size   512k;
  fastcgi_buffers 8 256k;
  fastcgi_buffer_size 128k;
  </code></pre>
  
  <p>But it doesn't seem to help. Any thoughts as to why this might occur?</p>
  
  <p>nginx.conf file:</p>
  
  <pre><code>user www-data;
  worker_processes  1;
  
  error_log  /var/log/nginx/error.log;
  pid        /var/run/nginx.pid;
  
  events {
      worker_connections  1024;
      # multi_accept on;
  }
  
  
  http {
      include       /etc/nginx/mime.types;
  
  proxy_buffer_size   256k;
  proxy_buffers   8 256k;
  proxy_busy_buffers_size   512k;
  fastcgi_buffers 8 256k;
  fastcgi_buffer_size 128k;
  
      access_log  /var/log/nginx/access.log;
  
      sendfile        on;
      #tcp_nopush     on;
  
      #keepalive_timeout  0;
      keepalive_timeout  65;
      tcp_nodelay        on;
  
      gzip  on;
      gzip_disable "MSIE [1-6]\.(?!.*SV1)";
  
      include /etc/nginx/conf.d/*.conf;
      include /etc/nginx/sites-enabled/*;
  }
  </code></pre>
  
  <p>/etc/nginx/sites-enabled/default</p>
  
  <pre><code>server {
      listen   80 default;
      server_name  localhost;
  
      access_log  /var/log/nginx/localhost.access.log;
  
      location / {
          root   /var/www/nginx-default;
          index  index.html index.htm;
      }
  
      location /doc {
          root   /usr/share;
          autoindex on;
          allow 127.0.0.1;
          deny all;
              }
  
      location /images {
          root   /usr/share;
          autoindex on;
      }
  }
  </code></pre>