Skip to content

Instantly share code, notes, and snippets.

@saikat
Created November 1, 2010 22:57
Show Gist options
  • Save saikat/659021 to your computer and use it in GitHub Desktop.
Save saikat/659021 to your computer and use it in GitHub Desktop.
server {
listen 74.207.243.49:80;
server_name www.gomockingbird.com;
rewrite ^/(.*) https://gomockingbird.com/$1 permanent;
}
server {
listen 74.207.243.49:80;
server_name gomockingbird.com;
rewrite ^/(.*) https://gomockingbird.com/$1 permanent;
}
server {
listen 74.207.243.49:443;
error_page 500 501 502 503 504 /maintenance.html;
ssl on;
ssl_certificate /etc/ssl/certs/mockingbird.crt;
ssl_certificate_key /etc/ssl/private/mockingbird.key;
server_name gomockingbird.com www.gomockingbird.com; if ($host !~ gomockingbird.com) {
rewrite ^/(.*) https://gomockingbird.com/$1 permanent;
}
# Location directives and other stuff here
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment