Using Ghost as blog and WordPress as "main" homepage

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, Ghost for 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?

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:

       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;
1 Like