# Using Ghost as blog and WordPress as "main" homepage

**URL:** <https://forum.ghost.org/t/using-ghost-as-blog-and-wordpress-as-main-homepage/36864>\
**Category:** Self-hosting\
**Created:** [March 5, 2023, 11:48pm UTC](https://forum.ghost.org/t/using-ghost-as-blog-and-wordpress-as-main-homepage/36864 "2023-03-05T23:48:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![benravetta](https://avatars.discourse-cdn.com/v4/letter/b/85e7bf/32.png) [@benravetta](https://forum.ghost.org/u/benravetta)\
**Post date:** [March 5, 2023, 11:48pm UTC](https://forum.ghost.org/t/using-ghost-as-blog-and-wordpress-as-main-homepage/36864/1 "2023-03-05T23:48:28Z")

</div>

I’ve seen countless topics on this @John, with no definitive answer. Would it be possible to get some ultimate clarity from yourself as to whether or not it’s possible to host Ghost on a subfolder (not subdomain) and run something on the main domain (ie. WordPress main site [example.com](http://example.com), Ghost for blog [example.com/blog](http://example.com/blog)) ?

Ironically, this probably goes against your own ethics as you moved away from WordPress for a reason, but purely technically speaking, is this possible?

Thanks for your time and if anybody else has any information that could help, please feel free to add to this topic.

EDIT: I will add that I’m not massively experienced with NGINX, but I’m led to believe you can’t have two conflicting server blocks for the same domain, but would it be possible?

---

<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:** [March 6, 2023, 1:50am UTC](https://forum.ghost.org/t/using-ghost-as-blog-and-wordpress-as-main-homepage/36864/2 "2023-03-06T01:50:52Z")

</div>

Please don’t @ people without context.

If you’re self hosting, it’s been possible for years to host Ghost on a subfolder. Ghost(Pro) has had some restrictions, but also supported it as well. You’re correct that nginx doesn’t allow conflicting server blocks, but the solution is to define multiple location blocks in a specific server block.

Here’s an example of multi-location blocks:

```auto
       location / {
                try_files $uri $uri/ =404;
        }

        location /blog/ {
                /* This would come from the config file created by ghost-cli */
                proxy_set_header X-Real-IP $remote_addr;
                proxy_set_header host $http_host;
                proxy_set_header X-NginX-Proxy true;
                proxy_set_header X-Forwarded-Proto $scheme;
                proxy_pass http://127.0.0.1:2368;
        }

```

---

<div class="post-metadata">

**Author:** ![Raph33](https://avatars.discourse-cdn.com/v4/letter/r/cc9497/32.png) [@Raph33](https://forum.ghost.org/u/Raph33)\
**Post date:** [March 14, 2025, 3:16am UTC](https://forum.ghost.org/t/using-ghost-as-blog-and-wordpress-as-main-homepage/36864/3 "2025-03-14T03:16:47Z")

</div>

I’m a ghost pro subscriber but not technical at all. Is it possible to achieve the same results without diving into the code or server?

---

<div class="post-metadata">

**Author:** ![jonhickman](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/jonhickman/32/33102_2.png) [@jonhickman](https://forum.ghost.org/u/jonhickman)\
**Post date:** [March 14, 2025, 10:47am UTC](https://forum.ghost.org/t/using-ghost-as-blog-and-wordpress-as-main-homepage/36864/4 "2025-03-14T10:47:23Z")

</div>

We’d be happy to chat about this on [support@ghost.org](mailto:support@ghost.org), @Raph33 🙂
