Skip to content

Instantly share code, notes, and snippets.

@wardbekker
Created May 26, 2015 13:34
Show Gist options
  • Save wardbekker/f732413adbe2729aab02 to your computer and use it in GitHub Desktop.
Save wardbekker/f732413adbe2729aab02 to your computer and use it in GitHub Desktop.
image proxy
# 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