If you’re looking for help, please provide information about your environment. If you delete this template and don’t provide any information, your topic will be automatically closed.
If you aren’t running the latest version of Ghost, the first thing we’ll ask you to do is update to the latest version of Ghost.
-
What’s your URL? Listed in the nginx files below
-
**What version of Ghost are you using?**1.24.2
And -
How was Ghost installed and configured? digital ocean ghost droplet configured to setup secondary domain and ssl, then configured for primary
-
What Node version, database, OS & browser are you using? node 16.20.1, mysql, ubuntu 22, safari
-
What errors or information do you see in the console? I don’t. ghost doctor did not return errors.
my files: /etc/nginx/sites-available/justmillit.com.conf
server {
listen 80;
listen [::]:80;
server_name justmillit.com;
root /var/www/ghost/system/nginx-root; # Used for acme.sh SSL verification (https://acme.sh)
ssl_certificate /etc/letsencrypt/justmillit.com_ecc/fullchain.cer;
ssl_certificate_key /etc/letsencrypt/justmillit.com_ecc/justmillit.com.key;
include /etc/nginx/snippets/ssl-params.conf;
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;
}
/etc/nginx/sites-available/www.justmillit.com.conf
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name www.justmillit.com;
return 301 https://justmillit.com$request_uri;
ssl_certificate /etc/letsencrypt/www.justmillit.com/fullchain.cer;
ssl_certificate_key /etc/letsencrypt/www.justmillit.com/www.justmillit.com.key;
include /etc/nginx/snippets/ssl-params.conf;
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 1g;
}
- What steps could someone else take to reproduce the issue you’re having? I’m not sure! The site was working before I attempted to get the secondary domain setup, and I don’t know why my change isn’t working right. I changed the files so www.justmillit.com should redirect to justmillit.com, and added links to each domain’s SSL files from let’s encrypt.