Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.