Skip to content

Instantly share code, notes, and snippets.

@sashich
Created May 29, 2013 08:27
Show Gist options
  • Save sashich/5668782 to your computer and use it in GitHub Desktop.
Save sashich/5668782 to your computer and use it in GitHub Desktop.
Basic auth for upstream
auth_basic "development";
# An arbitrary name for the authentication realm;
auth_basic_user_file /etc/nginx/.htpasswd;
# Path to an Apache htpasswd file;
proxy_set_header Authorization "";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment