Skip to content

Commit

Permalink
Include notes for nginx as well
Browse files Browse the repository at this point in the history
  • Loading branch information
erik-stephens committed Apr 18, 2015
1 parent 9ddd55f commit 5bccbae
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,10 @@ Digest authentication example
WSGI Considerations
-------------------

Make sure to set `WSGIPassAuthorization On` as [documented here](https://code.google.com/p/modwsgi/wiki/ConfigurationDirectives#WSGIPassAuthorization) to prevent the frontend web server from consuming the authorization header.
Make sure that the authorization headers are passed through to your application. Otherwise, your callbacks will have empty values for the user & password. Here are the directives needed for the following web servers.

- Apache: set `WSGIPassAuthorization On` as [documented here](https://code.google.com/p/modwsgi/wiki/ConfigurationDirectives#WSGIPassAuthorization).
- Nginx: set `wsgi_pass_authorization on` as [documented here](http://wiki.nginx.org/NgxWSGIModule)

Resources
---------
Expand Down

0 comments on commit 5bccbae

Please sign in to comment.