Installing an app on a subdomain


#1

I have Ghost (0.11) installed correctly at an URL like myghost.com
I would like to install an app (discourse or NodeBB probably) on a subdomain like app.myghost.com

How do I configure Ghost to recognize that route/app?


#2

Ghost has nothing to do with this, it only handles routes that hit it directly (so in your case, myghost.com)

You need to follow the installation instructions provided by the app

Sidenote: Ghost 0.x is going to be deprecated by the end of the year, so you should really update to Ghost 2.0 or 1.0

Hope this helps :slight_smile:


#3

Thanks. It is complicated, as I already have some settings in the way.
How about setting a certain path for a different app?
For instance I would like to use myghost.com/app for an app and I don’t want that Ghost to consider ‘app’ directory one of the pages.
How could I do this?


#4

This would be handled in your nginx config (if you used the default stack)

I’m a bit rusty, but you would add a block like

location /app {
    try_files $uri $uri/ =404;
}

location / {
    # auto generated ghost config would be here!
}