Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I am trying to setup an authentication for a directory on a ubuntu server and when i sign in i get a 500 Internal Server Error

I have the following:

 AuthUserFile .htpasswd
 AuthName "Sign In"
 AuthType Basic
 Require eMA

I also tried the POST GET and valid-user

the htpaswd file is in the same directory as the htaccess.

I cant seem to figure out what would be causing this any ideas?

share|improve this question

2 Answers 2

I assume you use apache webserver. Most probably you will find the cause of the error in the error_log file which can be found in /var/log/apache2 according to

share|improve this answer
+1 I bet AllowOverrides isn't properly set. – BenGC Aug 7 '11 at 19:32

AuthUserFile /app/seguridad/.htpasswd AuthName "Area Protegida" AuthType Basic

require user francisco

Para solucionar tuve que editar el siguiente archivo vim /etc/httpd/conf/httpd.conf Y agregar la siguientes lineas: 33 LoadModule auth_basic_module modules/ 34 LoadModule auth_digest_module modules/ 35 LoadModule authz_user_module modules/

Y listo! Solucionado. Espero haberte ayudado. Saludos, Francisco.

share|improve this answer
Welcome to ServerFault. We greatly prefer answers to be in English. Don't worry if your English language skills aren't great; I'll bet you're better at English than I am at Spanish. (grin) – womble Nov 12 at 20:19

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.