force ssl on nginx

server {
    listen      80;
    server_name myhostname.com;
    rewrite     ^   https://$server_name$request_uri? permanent;
}

Comments are closed.