FIRST: Ghost is awesome. I want to fix this and carry on with Ghost.
Apologies about a vague request ealrier, i have added details of the relevant files now.
@MrEngineer13 and whom ever else saw it and shrugged their shoulders. sorry about that earlier structure of the post. I hope below is better now.
I am a Window cleaner, not a super guru on VPS servers and nodejs.
BUT I can read and follow instructions to a reasonable / respectable degree… I think…
I bought a domain tidyglass.co.uk
I bought royce theme.
I got a Linode VPS
I installed ghost as https://tidyglass.co.uk
And I love it. All good to this point. SEO is grand and easy, already getting found for my desired areas/results.
However, I cannot setup www.tidyglass.co.uk as https://
I followed the guide in the Ghost Cli page at Ghost-CLI - A fully loaded tool for installation and configuration changed the url, generated the ssl, then changed the url back to direct https://tidyglass.co.uk and yet with a valid ssl for www it still does not work. I am going off my head here.
So my tidyglass.co.uk-ssl.conf is as follows.
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name tidyglass.co.uk;
root /var/www/ghost/system/nginx-root; # Used for acme.sh SSL verification (https://acme.sh)
ssl_certificate /etc/letsencrypt/tidyglass.co.uk/fullchain.cer;
ssl_certificate_key /etc/letsencrypt/tidyglass.co.uk/tidyglass.co.uk.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:2368;
}
location ~ /.well-known {
allow all;
}
client_max_body_size 50m;
}
then I have a tidyglass.co.uk.conf as follows
server {
listen 80;
listen [::]:80;
server_name tidyglass.co.uk;
root /var/www/ghost/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;
}
for the www entry I created it is as follows (as mentioned above i have ghost config url https://tidyglass.co.uk applied now) and www.tidyglass.co.uk-ssl.conf is
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name www.tidyglass.co.uk;
return 301 https://tidyglass.co.uk$request_uri;
}
and the 80 listening conf www.tidyglass.co.uk.conf
server {
listen 80;
listen [::]:80;
server_name www.tidyglass.co.uk;
return 301 https://tidyglass.co.uk$request_uri;80 listening entry is
}
So those are my details. Can I get help.
If I fix I vow to create a post that will explain it all for normal mortals than want ghost like me that are also battling this.