Created
April 16, 2014 17:47
-
-
Save chrismeller/10912818 to your computer and use it in GitHub Desktop.
Nginx vhost redirect to ssl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
include listen_80; | |
server_name www.example.com; | |
rewrite ^ https://www.example.com$request_uri$is_args$args; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment