WebFaction
Community site: login 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 08 Jun '12, 16:50

nkm
313
accept rate: 0%


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,

-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,

LoadModule digest_module        modules/mod_auth_digest.so
permanent link

answered 08 Jun '12, 18:16

johns
5.4k312
accept rate: 23%

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

(11 Jun '12, 09:35) nkm
Your answer
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

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×909
×225
×31
×1

question asked: 08 Jun '12, 16:50

question was seen: 3,407 times

last updated: 11 Jun '12, 09:39

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM