Skip to content

Instantly share code, notes, and snippets.

@faizanayubi
Created May 14, 2017 04:25
Show Gist options
  • Save faizanayubi/c6e7cc4ba712a211f94afdaf33f116af to your computer and use it in GitHub Desktop.
Save faizanayubi/c6e7cc4ba712a211f94afdaf33f116af to your computer and use it in GitHub Desktop.
Redirect to SSL
server {
listen 172.31.20.172:80;
server_name m.vnative.com;
## redirect http to https ##
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