# Installing an app on a subdomain

**URL:** <https://forum.ghost.org/t/installing-an-app-on-a-subdomain/4455>\
**Category:** Developer help\
**Created:** [December 8, 2018, 11:33pm UTC](https://forum.ghost.org/t/installing-an-app-on-a-subdomain/4455 "2018-12-08T23:33:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![George\_Ilie](https://avatars.discourse-cdn.com/v4/letter/g/5f8ce5/32.png) [@George\_Ilie](https://forum.ghost.org/u/George_Ilie)\
**Post date:** [December 8, 2018, 11:33pm UTC](https://forum.ghost.org/t/installing-an-app-on-a-subdomain/4455/1 "2018-12-08T23:33:37Z")

</div>

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

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

---

<div class="post-metadata">

**Author:** ![vikaspotluri123](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/vikaspotluri123/32/24_2.png) [@vikaspotluri123](https://forum.ghost.org/u/vikaspotluri123)\
**Post date:** [December 8, 2018, 11:47pm UTC](https://forum.ghost.org/t/installing-an-app-on-a-subdomain/4455/2 "2018-12-08T23:47:56Z")

</div>

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 🙂

---

<div class="post-metadata">

**Author:** ![George\_Ilie](https://avatars.discourse-cdn.com/v4/letter/g/5f8ce5/32.png) [@George\_Ilie](https://forum.ghost.org/u/George_Ilie)\
**Post date:** [December 11, 2018, 3:24pm UTC](https://forum.ghost.org/t/installing-an-app-on-a-subdomain/4455/3 "2018-12-11T15:24:31Z")

</div>

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](http://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?

---

<div class="post-metadata">

**Author:** ![vikaspotluri123](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/vikaspotluri123/32/24_2.png) [@vikaspotluri123](https://forum.ghost.org/u/vikaspotluri123)\
**Post date:** [December 11, 2018, 10:21pm UTC](https://forum.ghost.org/t/installing-an-app-on-a-subdomain/4455/4 "2018-12-11T22:21:49Z")

</div>

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

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

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

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/b/ba9ce5100b8bb264586f4f572545596b2ce3f081.png) [@system](https://forum.ghost.org/u/system)\
**Post date:** [December 25, 2018, 10:30pm UTC](https://forum.ghost.org/t/installing-an-app-on-a-subdomain/4455/5 "2018-12-25T22:30:10Z")

</div>

Closed on December 25, 2018, 10:30pm UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
