Yes, the url in config.json should be equal to exactly the URL at which you access your site. It usually shouldn't be localhost or an IP address.
Subdomain proxy for Apache
I'm attempting to redirect the NodeBB install to a subdomain using Apache. I have created a virtualhosts.conf file in /etc/apache2/sites-available with the configuration below:
Allow from all
ProxyPass /socket.io/1/websocket ws://18.104.22.168:4567/socket.io/1/websocket
ProxyPassReverse /socket.io/1/websocket ws://22.214.171.124:4567/socket.io/1/websocket
What am I doing wrong here?
Did you try it with localhost like the docs say? I'm assuming you don't have to symlink it to sites-enabled like with nginx?
Also, as you're on 2.2.22 of Debian, did you do this? Looks fun...
This works for Ubuntu 12.04 as well, it took awhile but I got it to work.
<Proxy *> Order deny,allow Allow from all </Proxy> 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/
I keep it at
127.0.0.1because nodebb is on the same server as everything else on it. Try leaving it at
127.0.0.1and see where that gets you.
Ubuntu 16.04 config, if someone might come up with that problem