Doesn't work with nginx?
vatnoise opened this issue · 1 comments
vatnoise commented
Hi,
I've been using ZeroMQ on my local virtual machine that only uses Apache and everything seems to be working but as soon as I decided to test it on the production server (that uses both Apache and nginx) it started returning 500/502 errors:
With apache2 and PHP working on FastCGI the apache log says:
(104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server, referer: http://website/_test/send.php
And if I switch it to an Apache module the error is following:
upstream prematurely closed connection while reading response header from upstream
Not sure if there needs to be some specific nginx configuration for it to work or maybe it's completely incompatible with nginx?
Thanks!
vatnoise commented
I was following this tutorial and it fails on the part when PHP needs to connect to the socket with $socket->connect("tcp://localhost:5555");