Skip to content

Instantly share code, notes, and snippets.

@rsandor
Last active May 18, 2018 22:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rsandor/2dce300e5bd8f23f1084faf27b43ca24 to your computer and use it in GitHub Desktop.
Save rsandor/2dce300e5bd8f23f1084faf27b43ca24 to your computer and use it in GitHub Desktop.
server {
listen 8000;
location / {
proxy_set_header HOST api.example.com;
proxy_set_header "User-Agent" "my-varnish-backend-proxy";
proxy_pass https://api.example.com;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment