Skip to content

Instantly share code, notes, and snippets.

@mikelittle
Created February 5, 2016 16:22
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 mikelittle/5ae41f153d8081b6805d to your computer and use it in GitHub Desktop.
Save mikelittle/5ae41f153d8081b6805d to your computer and use it in GitHub Desktop.
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