WebFaction
Community site: login faq

I just tried to set up the basic authentication outlined here: http://docs.webfaction.com/software/django/config.html#password-protecting-a-django-application

in httpd.conf in my django project, i added: LoadModule auth_basic_module modules/mod_auth_basic.so LoadModule authn_file_module modules/mod_authn_file.so LoadModule authz_user_module modules/mod_authz_user.so

and lower added: <location/> AuthType Basic AuthName "Authentication Required" AuthUserFile "/path/to/.htpasswd" Require valid-user </location>

I also tried including: WSGIPassAuthorization On

I created a new user, and when prompted with the login, i enter the username and password. this brings me to an internal server error page. what is the problem?

asked 17 May '11, 23:46

Pat B
346
accept rate: 0%

solved: I had not replaced some <non literals=""> with the appropriate things

(18 May '11, 10:50) Pat B

What does the log say? It should be located in ~/logs/. Internal Server errors are logged most of the time.

permanent link

answered 18 May '11, 00:06

johns
5.3k312
accept rate: 23%

httpd.pid in ~/logs/ says "1144"... is that an error code?

(18 May '11, 00:09) Pat B

There should be more info, The log would be either ~/logs/frontend/error_appname.log or ~/logs/user/error_appname.log, depending on where the error is occurring in the stack.

(18 May '11, 00:18) johns
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
×31
×28

question asked: 17 May '11, 23:46

question was seen: 3,871 times

last updated: 18 May '11, 10:50

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