Well because we have switch from apache to nginx we encountered a new problem .
When we have enable zend_db_profiler_firebug we got “bad gateway” error.
One simple fix for this is to append bellow line into your virtual.conf of ngix.
# set these two: zend_db_profiler_firebug
fastcgi_buffer_size 16k;
fastcgi_buffers 4 16k;
It should look something like this.
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
fastcgi_param APPLICATION_ENV production;
# set these two: zend_db_profiler_firebug
fastcgi_buffer_size 16k;
fastcgi_buffers 4 16k;
}
[…] the post http://matrafox.info/firephp-on-nginx-zend_db_profiler_firebug-bad-gateway.html i […]
Pingback by upstream sent too big header while reading response header from upstream | How to - si altele — December 14, 2011 @ 11:50 am