search by tags

for the user

adventures into the land of the command line

http to https rewrite with nginx

HTTPS always!!

server {
       listen         80;
       server_name    my.groovy_domain.com;
       return         301 https://$server_name$request_uri;
}

server {
       listen         443;
       server_name    my.groovy_domain.com;
       # add Strict-Transport-Security to prevent man in the middle attacks
       add_header Strict-Transport-Security "max-age=31536000";

       [....]
}