Question
Ghost droplet with SSL troubles
I’ve been pulling my hair out trying to figure out how to get SSL encryption working on my Ghost install. I have Ghost 0.4.2 installed on an Ubuntu 12.04 droplet. I’ve followed every guide out there on how to configure Nginx to support SSL. I’m probably reaching a point of no return since I’ve copied and pasted so many things, and I’ve probably really screwed up somewhere along the way. Below is my Nginx configuration file. My SSL certificate works, and I can service nginx restart
without a problem. However, no matter what page I go to, I cannot use https. Chrome sits for about 10 seconds, then takes me to “This webpage is not available.”
server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
listen 443 ssl;
root /usr/share/nginx/www;
index index.html index.htm;
server_name localhost;
ssl_certificate /etc/nginx/ssl/redacted.com.crt;
ssl_certificate_key /etc/nginx/ssl/redacted.key;
location / {
proxy_pass http://localhost:2368/;
proxy_set_header Host $host;
proxy_buffering off;
}
}
I have also tried manually adding 443 to my iptables, which doesn’t fix anything either.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×