Skip to content

Instantly share code, notes, and snippets.

@eirikb eirikb/proxy.conf

Created Nov 21, 2011
Embed
What would you like to do?
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
You can’t perform that action at this time.