Skip to content

Instantly share code, notes, and snippets.

@eirikb
Created November 21, 2011 15:09
Show Gist options
  • Save eirikb/1382899 to your computer and use it in GitHub Desktop.
Save eirikb/1382899 to your computer and use it in GitHub Desktop.
map $remote_addr $proxyaddr{
default http://10.0.0.5:8001;
10.0.1.7 http://10.0.1.7:8001;
}
server {
listen 8001;
server_name localhost;
location / {
proxy_pass http://10.0.0.5:8001;
}
location /some/service {
proxy_pass $proxyaddr;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment