# Adding Ghost on top of my existing app

**URL:** <https://forum.ghost.org/t/adding-ghost-on-top-of-my-existing-app/11094>\
**Category:** Developer help\
**Created:** [January 1, 2020, 4:44pm UTC](https://forum.ghost.org/t/adding-ghost-on-top-of-my-existing-app/11094 "2020-01-01T16:44:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bort12](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/bort12/32/5664_2.png) [@bort12](https://forum.ghost.org/u/bort12)\
**Post date:** [January 1, 2020, 4:44pm UTC](https://forum.ghost.org/t/adding-ghost-on-top-of-my-existing-app/11094/1 "2020-01-01T16:44:49Z")

</div>

Hey, I am looking to use ghost as a cms for my publications. I was wondering how can I possible structure the URLs correctly.

Currently I have an app hosted under ([https://myapp.com](https://myapp.com)) for exmple.

I am looking to add 2 collections [news] and [guides], so I can achieve:

> **[应用宝官网-全网最新最热手机应用游戏下载](https://sj.qq.com)**
>
> 应用宝是腾讯旗下官方手机app应用商店，致力于为您提供海量、优质、安全、最新的安卓应用游戏下载！

> **[应用宝官网-全网最新最热手机应用游戏下载](https://sj.qq.com)**
>
> 应用宝是腾讯旗下官方手机app应用商店，致力于为您提供海量、优质、安全、最新的安卓应用游戏下载！

I am looking to stick to my existing URL, and using ghost only for /news and /guides. Is it possible?  
Sorry for the silly questions I am just totally new into it.

---

<div class="post-metadata">

**Author:** ![itsmingjie](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/itsmingjie/32/5585_2.png) [@itsmingjie](https://forum.ghost.org/u/itsmingjie)\
**Post date:** [January 8, 2020, 5:00am UTC](https://forum.ghost.org/t/adding-ghost-on-top-of-my-existing-app/11094/2 "2020-01-08T05:00:21Z")

</div>

This is possible – check out **reverse proxy**.

Say for Nginx, you can route the subdirectories `/news` and `/guides` as separate “locations” than your existing app. For example:

```auto
location / {
    # YOUR ROOT CONFIGURATION FOR MYAPP.COM
}

location /news/ {
    ....
    proxy_pass http://localhost:6666; # Where your Ghost is running
    ....
}

```

etc. Then you simply firewall external access of port 6666, and you’re good to go.

Check out Ghost’s official guide on this:

> **[Nginx Subdirectory Setup](https://ghost.org/help/nginx-subdirectory-setup/)**
>
> It's possible to setup a reverse proxy using an nginx configuration to establish a subdirectory on Ghost(Pro) with some custom configuration. Find out how 👉
