E
E
Empty User2014-05-15 19:21:24
Nginx
Empty User, 2014-05-15 19:21:24

Why Node js and Socket.io don't work correctly on Apache + Nginx?

There is an Apache server with Nginx proxy. Put Node JS, everything works. But when I turn on Socket.io in the project, everything immediately crashes. I understand that when connecting from a browser, it loads a js file, and it is somehow updated. And nginx conducts this through a proxy, and this is how static is obtained. How to fix? Thanks in advance!

Answer the question

In order to leave comments, you need to log in

3 answer(s)
F
flyaway, 2014-10-04
@dimash07

socket.io/docs/using-multiple-nodes

N
Nazar Mokrinsky, 2014-05-15
@nazarpc

Quick question: why do you need Apache?
The more to fence layers - the more likely to fail.

S
sasha, 2014-05-15
@madmages

As far as I remember, you need to specify a port in socket.io and this port should not be occupied by Apache or Engine. It is very likely that you, without specifying the port, raise it to 80 and everything falls down

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question