Guide correction: Apache2.4 Proxy config is innaccurate
After working on setting up my NodeBB in a Linode server, I struggled to get an apache reverse proxy that would allow me to setup the NodeBB as a 'forum' subdomain (ie forum.example.com). I tired using the proxy configuration guide in the documentation, but it really doesn't work. So here are some suggestions on how to improve it.
The required apache module section is fine.
The configuration for the virtual host section needs a clearer example, so here is my example of how to set up the virtualhost.conf file. This is specifically for setting up NodeBB in a subdomain, but it should be pretty obvious how to set it up for a regular domain.
CustomLog /var/www/example.com/logs/access.log combined
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 ProxyPass /socket.io/ http://127.0.0.1:4567/socket.io/ ProxyPassReverse /socket.io/ http://127.0.0.1:4567/socket.io/ ProxyPass / http://127.0.0.1:4567/ ProxyPassReverse / http://127.0.0.1:4567/
Finally, the config.json file bit is fine. I guess it's just the virtualhost configuration file piece that needs adjustment IMHO.
You can submit a PR for the docs here
I have submitted the change.