Streaming of Content (CGI)
Maxim Dounin
mdounin at mdounin.ru
Mon Dec 28 21:46:22 MSK 2009
Hello!
On Mon, Dec 28, 2009 at 07:23:35PM +0100, Nuno Neves wrote:
> Hi,
>
> I'm trying to run cgiirc (http://cgiirc.org) with nginx proxy to
> apache/thttpd.
> If I access apache or thttpd directly it works, but when I access with
> nginx it doesn't work.
>
> I've tested with this test file too and doesn't work ->
> http://cgiirc.org/files/teststream.pl.txt.
>
> "Testing streaming of content (with scripting)
> If most of the tests below succeed then it is likely streaming of
> content works fine. If they fail then either the webserver, a proxy
> between you and the webserver or your browser is having problems with
> streams (and sometimes scripts embedded inside streams). If the
> difference in any failed tests is only a second then it is more likely
> that your internet connection to the server is slow.
>
> Test 0: OK
> Test 1: Failed: 1262024225 != 1262024220
> Test 2: Failed: 1262024230 != 1262024220
> Test 3: Failed: 1262024235 != 1262024220
> Test 4: Failed: 1262024240 != 1262024220
> Test 5: Failed: 1262024245 != 1262024220
> Less than 4 tests were successful. You probably have a problem with
> streaming of content (or a slow internet connection)
> End of test."
>
> What can I do to nginx so it works with this setup?
No idea about cgiirc, but most likely you need proxy_buffering off.
See details here:
http://wiki.nginx.org/NginxHttpProxyModule#proxy_buffering
Maxim Dounin
More information about the nginx
mailing list