# Ghost on a Ubuntu VPS with other non-Ghost domains

**URL:** <https://forum.ghost.org/t/ghost-on-a-ubuntu-vps-with-other-non-ghost-domains/34814>\
**Category:** Self-hosting\
**Created:** [December 15, 2022, 12:27am UTC](https://forum.ghost.org/t/ghost-on-a-ubuntu-vps-with-other-non-ghost-domains/34814 "2022-12-15T00:27:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![timbenz](https://avatars.discourse-cdn.com/v4/letter/t/bbce88/32.png) [@timbenz](https://forum.ghost.org/u/timbenz)\
**Post date:** [December 15, 2022, 12:27am UTC](https://forum.ghost.org/t/ghost-on-a-ubuntu-vps-with-other-non-ghost-domains/34814/1 "2022-12-15T00:27:31Z")

</div>

Does anyone have any tips for getting Ghost running on a Ubuntu VPS alongside other pre-existing domains, all of which are using Nginx, but all are non-Ghost (mostly WordPress)? I keep running into permission issues, 403 issues, etc. I can get Ghost running on a bare domain with nothing else, but as soon as there are other non-Ghost sites in the mix, it all gets hairy.

---

<div class="post-metadata">

**Author:** ![mjw](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/mjw/32/30781_2.png) [@mjw](https://forum.ghost.org/u/mjw)\
**Post date:** [December 15, 2022, 8:58am UTC](https://forum.ghost.org/t/ghost-on-a-ubuntu-vps-with-other-non-ghost-domains/34814/2 "2022-12-15T08:58:11Z")

</div>

@timbenz, it would be really helpful if you shared some example of the domains; are they unique or subdomains?

Likewise, what version of Ubuntu, database, and other software are you using?

There shouldn’t be an issue running different services behind an Nginx proxy. I currently do this albeit not Wordpress anymore.

---

<div class="post-metadata">

**Author:** ![markstos](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/markstos/32/18182_2.png) [@markstos](https://forum.ghost.org/u/markstos)\
**Post date:** [December 15, 2022, 11:36am UTC](https://forum.ghost.org/t/ghost-on-a-ubuntu-vps-with-other-non-ghost-domains/34814/3 "2022-12-15T11:36:00Z")

</div>

I do this without a problem.

Share your hairy Nginx config.

---

<div class="post-metadata">

**Author:** ![aditodkar](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/aditodkar/32/16089_2.png) [@aditodkar](https://forum.ghost.org/u/aditodkar)\
**Post date:** [December 15, 2022, 1:43pm UTC](https://forum.ghost.org/t/ghost-on-a-ubuntu-vps-with-other-non-ghost-domains/34814/4 "2022-12-15T13:43:26Z")

</div>

Sharing for your reference:

> [@How to setup ghost with nginx configuration?](https://forum.ghost.org/t/how-to-setup-ghost-with-nginx-configuration/34219/7):
>
> This solution worked for me: location ^~ /blog { client\_max\_body\_size 10G; # Required for uploading large files proxy\_set\_header X-Forwarded-For $proxy\_add\_x\_forwarded\_for; proxy\_set\_header Host $http\_host; proxy\_set\_header X-Forwarded-Proto $scheme; proxy\_pass http://127.0.0.1:2368; } Note in config.production.json file: replace "url":"http://localhost:2368/" with "url": "https://yourapp.com/blog", S…
