Skip to content

Instantly share code, notes, and snippets.

@kreegr
Created July 24, 2014 00:47
Show Gist options
  • Save kreegr/5d6eb5ac71a2a91a8925 to your computer and use it in GitHub Desktop.
Save kreegr/5d6eb5ac71a2a91a8925 to your computer and use it in GitHub Desktop.
nginx wildcard proxy_pass
location ~ ^/(.*)/ {
resolver 10.225.144.10 10.225.147.10 valid=15s;
proxy_pass http://$1/$is_args$args;
proxy_buffering off;
proxy_read_timeout 300;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment