Using your own domain for NodeBB, if your on Centos/WHM/cPanel

Technical Support
  • In your SSH, your meant to edit /usr/local/apache/conf/httpd.conf ... but DONT DO THIS!

    Instead use this guide hxxp:// [change hxxp to http, akismet does not seem to like links!]

    and copy your proxy details as shown in the NodeBB docs link for configuring apache where the line begins "ProxyRequests off" copy all that info into your custom virtualhost.conf file which is stored in the custom domain folder you created.

    as shown in the proxy page in the nodebb docs...

    ProxyRequests off

    <Proxy *>
    Order deny,allow
    Allow from all
    ProxyPass / ws://
    ProxyPassReverse / ws://

    ProxyPass /
    ProxyPassReverse /

    ProxyPass /
    ProxyPassReverse /

    You might need to clear your cookies and cache for your browser to see the changes after you do the /scripts/ensure_vhost_includes --all-users command.

    This is how I got mine to work, without on a normal domain.

    Also things to make sure you do:
    Don't install NodeBB in your public_html folder, put it in your /home/username/nodebb as it does not need to be exposed as the port number is the reason why it can work this way, making the proxy the last piece of the puzzle.

    Hope this explains how to get it to work without all the hassle!!

  • Also if you want to boot on system start on centos, use PM2, its the only thing that actually worked!! also.. you get to use keymetrics as well!!

  • Im running ubuntu, i created my own startup (init.d) script so it loads on boot

Suggested Topics