Hi everyone,
I’m reaching out because I’ve run into a bit of an issue while setting up two separate Ghost websites on the same VPS. Both websites are running fine individually, but for some reason, they both show the same content despite being configured to run on different ports and domains.
Here’s the setup:
- I have two Ghost websites installed on my VPS: one for
quikseekr.com
and another formediuminside.com
. - Both are configured to run on different ports:
fluentpatt.com
on port 2368 andmediuminside.com
on port 2369. - I’m using Nginx as a reverse proxy to route traffic to the correct ports based on the domain name.
The problem is that both websites display the same content (the first website) no matter which domain I visit. It seems like Nginx is routing the traffic correctly to the appropriate port, but somehow the second Ghost instance (running on port 2369) is showing the same page as the first one (on port 2368).
*** Both Ghost instances are running with different ports.**
*** The configuration files for Nginx appear to be set up correctly, with the
server_name
and proxy_pass
pointing to the right ports.***** Both websites are using separate domains and SSL certificates (via Let’s Encrypt).**
GNU nano 7.2 /etc/nginx/sites-available/mediuminside.com.conf
map $status $header_content_type_options {
204 "";
default "nosniff";
}
server {
listen 80;
listen [::]:80;
server_name mediuminside.com;
root /var/www/newwebsite/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;
add_header X-Content-Type-Options $header_content_type_options;
}
location ~ /.well-known {
allow all;
}
client_max_body_size 50m;
}
type or paste code here
server {
listen 80;
listen [::]:80;
server_name quikseekr.com;
root /var/www/quikseekr_com/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:2368;
}
location ~ /.well-known {
allow all;
}
client_max_body_size 50m;
}