nginx buffer errors during cacti install

nginx was working fine until I installed cacti.  I kept getting 502 errors and this message:

 2010/12/09 19:03:39 [error] 20002#0: *283 upstream sent too big header while reading response header from upstream, client:, server: _, request: "GET /cacti/ HTTP/1.1", upstream: "fastcgi://", host: "" 

The solution is to increase the buffers from their defaults which are listed here: I tried various values and the minimum values that would work with cacti were the following in your /etc/nginx/nginx.conf:

 location ~ \.php$ { fastcgi_buffers 8 16k; fastcgi_buffer_size 32k; }