Skip to content

Instantly share code, notes, and snippets.

@InsanusMokrassar
Created September 8, 2020 11:36
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 InsanusMokrassar/9a88436644b280c8e0cfb90033a0d7bc to your computer and use it in GitHub Desktop.
Save InsanusMokrassar/9a88436644b280c8e0cfb90033a0d7bc to your computer and use it in GitHub Desktop.
NGinx auto redirect to https
server {
listen 80 default_server;
server_name _;
return 301 https://$host$request_uri;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment