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

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to set up DomJudge with Apache on an Ubuntu server and have the following config included in my httpd.conf

# Require authentication to jury webinterface
<Directory /home/domjudge/domjudge/domserver/www/jury>
Options Indexes Includes FollowSymLinks 
AuthType Basic
AuthName "DOMjudge Jury Interface Login"
Require valid-user
AuthUserFile /home/domjudge/domjudge/domserver/etc/htpasswd-jury
AllowOverride None 

# Optionally restrict access to just the jury computers:
allow from all
# allow from

And the htpasswd file is as follows:

-rw-r--r-- 1 domjudge www-data   46 2012-04-18 17:14 htpasswd-jury

And contains


I restart Apache, when I go to that address I am prompted with a login this server requires a username and a password...the server says DOMjudge Jury Interface Login but even if I enter the passwords as above the prompt simply comes up again.

What is going on? Have I missed something?

Thanks for your time,

share|improve this question
You didn't specify how you created or obtained that htpasswd-jury file. – Tim Apr 18 '12 at 15:45
Might want to set the proper permissions on the passwd file as well, chmod 0644 htpasswd-jury. – Tim Apr 18 '12 at 15:49
@Tim I created that file myself conforming to the .htpasswd spec – Pez Cuckow Apr 18 '12 at 15:49
up vote 0 down vote accepted

It looks like you don't have encrypted passwords in your htpasswd-jury file. Just to check things out make a copy of your /home/domjudge/domjudge/domserver/etc/htpasswd-jury file then

htpasswd -c /home/domjudge/domjudge/domserver/etc/htpasswd-jury domjudge_jury

answer the prompts etc. Now try and log in.

From the apache htpasswd documentation

    Use plaintext passwords. Though htpasswd will support creation on all 
platforms, the httpd daemon will only accept plain text passwords on Windows, 
Netware and TPF.

As you appear to be on a Unix like system it appears you'll have to use encrypted passwords.

share|improve this answer
<3 completely forgot you had to encrypt them... – Pez Cuckow Apr 18 '12 at 17:09

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.