Export to GitHub

firephp - issue #128

502 error with nginx


Posted on Sep 26, 2009 by Helpful Horse

What steps will reproduce the problem? 1. put a site up on WebFaction or another shared hosting using Nginx to reverse proxy Apache (not sure if my description is accurate) 2. use the browser and extensions set to enabled, as listed below, to load the site

What is the expected output? What do you see instead? Instead of web page: '502 Bad Gateway / nginx'

What version of the product are you using? On what operating system? FirePHP 0.3.1 FireBug 1.4.2 FireFox 3.5.3

Please provide any additional information below. http://sigmod.webfactional.com

Comment #1

Posted on Sep 26, 2009 by Happy Camel

I will have a solution for this soon.

In the meantime you could try reducing the size of each header from 5000 to 1000 or less.

See: http://code.google.com/p/firephp/source/browse/trunk/FirePHPCore/lib/FirePHPCore/FirePHP.class.php#860

Comment #2

Posted on Mar 22, 2010 by Helpful Bird

Same problem here, reducing the header size doesn't help. Seems as if FirePHP headers confuse Nginx.

Using the same server configuration: Apache 2 + Nginx as reverse proxy. Client: FirePHP extension 0.4.3, FirePHPLibrary 0.3.1, Firefox 3.5.8.

Comment #3

Posted on May 7, 2010 by Quick Cat

It's buffer-size related issue, you need to increase the buffer sizes of your responses so that the header can fit into them. Look up the nginx doc to help you with that and experiment with increasingly large header sizes.

Comment #4

Posted on Jul 22, 2010 by Happy Camel

Comment deleted

Comment #5

Posted on Nov 6, 2010 by Happy Camel

Workaround for FirePHPCore: http://britg.com/2009/06/16/nginx-proxies-with-firephp/

Fixed in FirePHP 1.0: http://reference.developercompanion.com/#/Tools/FirePHPCompanion/Introduction/

Status: Done

Labels:
Type-Enhancement Priority-Medium Milestone-1.0 Companion-Done FireConsole-Planned