https

Nginx default server with https

I have a few domains/vhosts set up on my server and I recently disabled one of them. When I wanted to make sure that it wasn't online anymore and tried to access it I noticed that nginx had picked one of my other vhosts (from dokku) as the default

Nginx, Ghost and https

When moving this blog from a temporary url to my main jonnev.se I got the dreadful "Too many redirects". There is a simple fix which I found here. Add proxy_set_header X-Forwarded-Proto https; to the conf. Mine now looks like this: server { listen 443 ssl; ssl_