Settings up NodeBB on a subdomain

  • I have installed Ghost blog on the root of a server like
    Now I want to install NodeBB on a subdomain like
    I managed to set the DNS to use the subdomain, although it serves the content from
    How could I install NodeBB on the same server and be accessed from a subdomain?

  • Global Moderator

    You set up your DNS so and both point to your server's IP. Then, on your server, you configure the reverse proxy (usually nginx) to serve both by creating two server configurations.

    In nginx on ubuntu, this looks like the following fire structure:

    • /etc/nginx/
      • sites-available/
        • (text file)
        • (test file)
      • sites-enabled/
        • -> ../sites-available/ (symlink)
        • -> ../sites-available/ (symlink)

    Then in the text file you have something like:

    server {

    And in the file, you have a config following the NodeBB nginx config:

    server {

  • @PitaJ thanks. I need to install it on Heroku and it doesn't have nginx now. I know I have a long road ahead, but I think I found the direction.

Log in to reply

Suggested Topics

  • 11
  • 8
  • 7
  • 6
  • 1
| |