Ghost blog for and WordPress for on the same server whit nginx


Trying to serve the blog of my website with ghost blog on And the website with WordPress on

What happens is when I access, I am getting my blog and when I try to access the website with it redirects me to a virgin ghost …

Domain Config : A record => blog / ip A record => www / ip CNAME => @ / www

Nginx Config : For wp

server {
        root /var/www/mywpdirectory;

        index index.php;

For Ghost

server {
    listen 80;
    listen [::]:80;

    root /var/www/myghostdirectory/system/nginx-root;

Anyone has an idea of what could go wrong here ?

Thanks, Alex


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.


Your DNS and the Nginx config look correct. I’ve had a similar issue in the past and I had to just make sure that the document root for both sites have the correct ownership so that Nginx could serve those files.

So in your case, you need to make sure that /var/www/mywpdirectory and /var/www/myghostdirectory/system/nginx-root are actually owned by the Nginx user.

Regards, Bobby