Created
November 7, 2012 23:54
-
-
Save benhoskings/4035472 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 [::]:80; | |
charset utf-8; | |
server_name ryanbigg.com www.ryanbigg.com; | |
if ($host !~ ^ryanbigg\.com$) { | |
rewrite ^(.*)$ http://ryanbigg.com$1 permanent; | |
} | |
location / { | |
proxy_pass http://NEW_SERVER_IP/; | |
proxy_redirect off; | |
proxy_set_header Host ryanbigg.com; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
client_max_body_size 10m; | |
proxy_buffers 4 32k; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment