login community faq

It says here that Apache for WebDav apps doesn't have HTTP Digest Authentication compiled in:

http://community.webfaction.com/questions/3661/digest-authentication-for-webdav

Is that the case for Django apps too? Or is our Digest authentication just not being passed on by the Nginx proxy or something?

asked Jun 08 '12 at 16:50

nkm's gravatar image

nkm
32


The apache stack that process WebDav is not the same as the apache stack that serves your Django. Digest is offered by the apache stack with this .so file,

1
-rwxr-xr-x 1 tmt tmt  61452 Feb 16  2011 mod_auth_digest.so

You will have to check httpd.conf to see if it is really enabled, it is not by default,

1
LoadModule digest_module        modules/mod_auth_digest.so

answered Jun 08 '12 at 18:16

johns's gravatar image

johns ♦♦
345427

Thank you! We've added that line to httpd.conf (it actually seems to require "auth_digest_module" rather than "digest_module") and successfully restarted Apache, but are still unable to authenticate.

Does Nginx pass all headers through to Apache, or might it be intercepting our WWW-Authenticate header? How can we best troubleshoot that?

EDIT: It was a WSGI issue. An additional directive is required to let Django rather than Apache handle the authentication:

WSGIPassAuthorization On

(Jun 11 '12 at 09:35) nkm nkm's gravatar image
Your answer
If you have an answer to the above question, then use the form below. Otherwise, use the appropriate 'add new comment' button above to post your feedback.
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Tags:

×652
×151
×14
×1

Asked: Jun 08 '12 at 16:50

Seen: 575 times

Last updated: Jun 11 '12 at 09:39

Plans & prices    Sign up    Why WebFaction?    Contact us    Affiliate program    Support    Legal    Jobs    Blog    Control panel login
Powered by OSQA
© Copyright 2003-2012 Swarma Limited - WebFaction is a service of Swarma Limited