Created
February 5, 2016 16:22
-
-
Save mikelittle/5ae41f153d8081b6805d to your computer and use it in GitHub Desktop.
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 { | |
server_name example.com www.example.com; | |
return 301 https://example.com$request_uri; | |
listen 80; | |
root /var/www/example.com/htdocs; | |
} | |
server { | |
server_name example.com www.example.com; | |
listen 443 ssl spdy; | |
access_log /var/log/nginx/example.com.access.log; | |
error_log /var/log/nginx/example.com.error.log; | |
root /var/www/example.com/htdocs; | |
index index.php index.html index.htm; | |
#...SSL settings etc. | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment