• Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
v3.5.2 Latest
Buy Hosting

Settings up NodeBB on a subdomain

Scheduled Pinned Locked Moved Technical Support
setupsubdomain
3 Posts 2 Posters 536 Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    george_i
    wrote on last edited by
    #1

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

    1 Reply Last reply
    0
  • PitaJP Offline
    PitaJP Offline
    PitaJ Global Moderator Plugin & Theme Dev
    wrote on last edited by
    #2

    You set up your DNS so myghost.com and forum.myghost.com 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/
        • myghost.com (text file)
        • forum.myghost.com (test file)
      • sites-enabled/
        • myghost.com -> ../sites-available/myghost.com (symlink)
        • forum.myghost.com -> ../sites-available/forum.myghost.com (symlink)

    Then in the myghost.com text file you have something like:

    server {
      server_name myghost.com;
      ...
    }
    

    And in the forum.myghost.com file, you have a config following the NodeBB nginx config:

    server {
      server_name forum.myghost.com;
      ...
    }
    
    G 1 Reply Last reply
    0
  • G Offline
    G Offline
    george_i
    replied to PitaJ on last edited by
    #3

    @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.

    1 Reply Last reply
    0

Copyright © 2023 NodeBB | Contributors
  • Login

  • Don't have an account? Register

  • Login or register to search.
Powered by NodeBB Contributors
  • First post
    Last post
0
  • Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development