Ghost showing default site

Hello guys i have one of my ghost blog running at https://techhelper.me and so i decided to make a different blog for news on news.techhelper.me so i made a new directory /var/www/ghost-news/ and installed ghost on different port 2369 because parent ghost is on 2368.
So now whenever i go to news.techhelper.me it shows all the website techhelper.me
What is the issue?
Thanks
Regards Ayush

I would separate the two sites in two different folders, i.e. /var/www/techhelper.me and /var/www/news.techhelper.me.

This allows for two different nginx site conf files, each with its own home folder.

Yes that;s what i have done i have two different directories and two different conf file but still it news.techhelper.me is showing techhelper.me content

Then there is some issue in the nginx site conf file, I assume. Either the home folder is not setup correctly or the proxy ports. Can you post the two config files?

Sure
Techhelper.me.conf

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

    server_name techhelper.me;
    root /var/www/ghost/system/nginx-root;

    location / {
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header Host $http_host;
        proxy_pass http://127.0.0.1:2368;

    }

    location ~ /.well-known {
        allow all;
    }

    client_max_body_size 50m;
}

News.techhelper.me.conf

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

    server_name news.techhelper.me;
    root /var/www/ghost-news/system/nginx-root;

    location / {
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header Host $http_host;
        proxy_pass http://127.0.0.1:2369;

    }

    location ~ /.well-known {
        allow all;
    }

    client_max_body_size 50m;
}

You are using the same home folder for both sites, that’s why you are running into this issue.

You need to separate the two sites in two completely different folders as I have exemplified in one of the previous posts.

LE: nevermind, they are two different folders (my mistake).

i have two different folders /var/www/ghost for techhelper.me and /var/www/ghost-news for news.techhelper.me

Did you run the Ghost CLI tool to do the install of the news subdomain for the second Ghost instance?

It was already installed system wide so i only updated it

So what should i do now can you please explain steps

Install ghost again via the CLI in the new directory. It will auto config the nginx File’s, set the port number, etc. all automatically.

Where should i make the new directory?

You can empty out the second directory /ghost-news/ you made and run the install tool there.

news is already installed in this directory and it is showing techhelper.me

So, you did run the ghost cli tool two times, once in each directory. And with the config tool, did you properly assign the URL each time?

Lastly, I assume you have your DNS setup properly with A records?

dns and url both are setup correctly. Ghost-cli is installed system wide so i didn’t need to install it again. So i only made a new directory ghost-news and run ghost install.

Right. I didn’t mean install ghost CLI twice. I meant did you run the installer via the tool twice. Sorry if that was confusing.

Ah no problem, i ran the ghost install only once in /ghost-news/ directory

The question is in which folder did you run the ghost install command?

Looking at your config, the ghost install should run in /var/www/ghost-news/system/nginx-root (for ghost-news site) and it should have been run in /var/www/ghost/system/nginx-root (for the initial site).

Yes correct 4 months ago when i setup ghost at techhelper.me i run ghost install command in /var/www/ghost directory and today when i am trying to setup new blog at news.techhelper.me i run ghost install command at /var/www/ghost-news