Created
February 6, 2018 14:53
-
-
Save njoyce/3535495d755f1dcd5939a3470b585ecc to your computer and use it in GitHub Desktop.
Nginx configuration for HTTP to HTTPS service
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 { | |
listen 80 default_server; | |
listen [::]:80 default_server; | |
server_name _; | |
return 307 https://$host$request_uri; | |
} |
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
daemon off; | |
error_log stderr; | |
pid /run/nginx.pid; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment