Created
November 1, 2010 22:57
-
-
Save saikat/659021 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 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