Installing twi ghost v3 instance on amazon ec2

Hi
I tried this way:
create two directory and install ghost in each directory, after that change nginx config with diffrent port for each instance and also change the config.production.json for each site to match the port in nginx, but it’s not working, only one site load and the other domain also link to the same site.

how should I do?
I’ve read the digitalocean docs already

@moeen it would help to share your nginx config so it’s possible for someone to see what’s gone wrong

1 Like

in. /etc/nginx/sites-enabled/
i have to files each for one domain, in each file

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

        server_name domain.com;
        root /var/www/1111/system/nginx-root; # Used for acme.sh SSL verification (https://acme.sh)

        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;
    } 

first site use port 2368 and the second use port 2369

Solved.
you should first change the port of the first installation using ghost config then install the second instance using default values…