Created
November 21, 2011 15:09
-
-
Save eirikb/1382899 to your computer and use it in GitHub Desktop.
This file contains 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
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