petersk
August 7th, 2007, 05:18 PM
On my home web server, I have an entry to control access to a movie page like this:
#NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin me
DocumentRoot /var/www
<Directory "/var/www/movie/">
Order allow,deny
Allow from all
AuthType Digest
AuthName "peters"
AuthUserFile /etc/apache2/svn-admin/digest-password
Require valid-user
</Directory>
I used htdigest to create three users. For some reason though, apache2 doesn't let anyone other than the last user in the digest-password file log in. Does anyone know what I'm doing wrong? I can see three entries in the file (I had to put the space after the ":" to avoid an emoticon in this post only):
kurt@odin:/etc/apache2/svn-admin$ cat digest-password
kurt: peters:6122a237364e0c80ebc5c3
traci: peters:a57ccacfe135d2b64c9e468dc9
pefamily: peters:c1b09d0f0a2b6c6ee1
so, in other words pefamily is the only user allowed to view.
Regards,
Kurt
#NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin me
DocumentRoot /var/www
<Directory "/var/www/movie/">
Order allow,deny
Allow from all
AuthType Digest
AuthName "peters"
AuthUserFile /etc/apache2/svn-admin/digest-password
Require valid-user
</Directory>
I used htdigest to create three users. For some reason though, apache2 doesn't let anyone other than the last user in the digest-password file log in. Does anyone know what I'm doing wrong? I can see three entries in the file (I had to put the space after the ":" to avoid an emoticon in this post only):
kurt@odin:/etc/apache2/svn-admin$ cat digest-password
kurt: peters:6122a237364e0c80ebc5c3
traci: peters:a57ccacfe135d2b64c9e468dc9
pefamily: peters:c1b09d0f0a2b6c6ee1
so, in other words pefamily is the only user allowed to view.
Regards,
Kurt