Created
May 26, 2015 13:34
-
-
Save wardbekker/f732413adbe2729aab02 to your computer and use it in GitHub Desktop.
image proxy
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
# web cluster nodes | |
# in this setup we have three local application servers | |
upstream web-cluster { | |
server a4.mzstatic.com; | |
#server 10.0.0.12; | |
#server 10.0.0.13; | |
} | |
# force redirect of http to https | |
# application will be available only over https | |
server { | |
listen 80 default; | |
server_name foobar; | |
location / { | |
proxy_pass http://web-cluster; | |
proxy_set_header Host "a4.mzstatic.com"; | |
expires max; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment