Skip to content

Instantly share code, notes, and snippets.

@ajayk
Created January 13, 2016 06:02
Show Gist options
  • Save ajayk/99ee02e0982565c84a81 to your computer and use it in GitHub Desktop.
Save ajayk/99ee02e0982565c84a81 to your computer and use it in GitHub Desktop.
location ~ /api {
proxy_ssl_server_name on;
set $proxy_pass_1 'https://sample.execute-api.us-east-1.amazonaws.com/stage';
proxy_pass $proxy_pass_1$request_uri;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment