Skip to content

Instantly share code, notes, and snippets.

@peakwinter
Created January 7, 2014 19:30
Show Gist options
  • Save peakwinter/8305339 to your computer and use it in GitHub Desktop.
Save peakwinter/8305339 to your computer and use it in GitHub Desktop.
Force SSL
server {
listen 80;
server_name yoursitename;
rewrite ^ https://$server_name$request_uri? permanent;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment