Apache Proxy Problem Help Please :D
Hey Awesome NodeBB peeps,
i have installed the apache proxy and have this error
File does not exist: /var/www/socket.io, referer: http://forum.elysium-gaming.tk/admin/index
My virtualhost is this**
ProxyRequests off <Proxy *> Order deny,allow Allow from all </Proxy> ProxyPass /socket.io/1/websocket ws://126.96.36.199:4567/socket.io/1/websocket ProxyPassReverse /socket.io/1/websocket ws://188.8.131.52:4567/socket.io/1/websocket ProxyPass /socket.io/ http://184.108.40.206:4567/socket.io/ ProxyPassReverse /socket.io/ http://220.127.116.11:4567/socket.io/ ProxyPass / http://18.104.22.168:4567/ ProxyPassReverse / http://22.214.171.124:4567/
Any help appreciated
On the NodeBB wiki they say to use this
Allow from all
ProxyPass /socket.io/1/websocket ws://127.0.0.1:4567/socket.io/1/websocket
ProxyPassReverse /socket.io/1/websocket ws://127.0.0.1:4567/socket.io/1/websocket
The team here actually doesn't use apache, so we the guide itself is completely community-moderated. If you (or anybody else) figures out the problem, an update to the wiki entry would be much appreciated
Thanks @julian for letting me know. For time being I will use nginx proxy with apache2 as the php handeler
@xCausxn I wrote the guide for Apache, but like you, this kinda made me think about switching to nginx and I did. Using php-fpm for handling php requests, and the passthrough works like a charm.
The main thing about apache is that most distros have apache 2.2.x which doesnt include the proper proxy tunnel module for web sockets. You either need 2.4.x, or backport the module to 2.2.x which is in the guide.
Since moving to nginx though, I question why I didnt do it sooner..
@kelso Yeah i backported the module but yeah nginx with apache2 as the PHP handler it works great