Skip to content

Instantly share code, notes, and snippets.

@mikhailov
Created November 19, 2010 09:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikhailov/706275 to your computer and use it in GitHub Desktop.
Save mikhailov/706275 to your computer and use it in GitHub Desktop.
nginx native ssl redirection without ssl_requirement
server {
listen 80;
server_name *.domain.com;
rewrite ^(.*) https://$host$1 permanent;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment