put the authentication configuration inside the <Directory> block to provide a complete set of information to the webserver.

fixes #12
This commit is contained in:
Jan Dittberner 2007-11-26 07:54:29 +00:00
parent 8f1c952074
commit 6ba18711b7

View file

@ -1,5 +1,5 @@
<VirtualHost 127.0.0.1:80> <VirtualHost 127.0.0.1:80>
ServerAdmin jan@davhost.example.com ServerAdmin admin@davhost.example.com
ServerName davhost.example.com ServerName davhost.example.com
DavLockDb /var/run/apache2/davlock/davhost.example.com DavLockDb /var/run/apache2/davlock/davhost.example.com
@ -12,6 +12,16 @@
AllowOverride AuthConfig Indexes AllowOverride AuthConfig Indexes
Order Allow,Deny Order Allow,Deny
allow from all allow from all
AuthType Digest
AuthName "WebDAV on davhost.example.com"
AuthDigestDomain /dav/
AuthDigestProvider file
AuthUserFile /var/www/auth/dav.htdigest
AuthGroupFile /var/www/auth/dav.groups
require valid-user
</Directory> </Directory>
<Location /davadmin> <Location /davadmin>
@ -26,16 +36,6 @@
require valid-user require valid-user
</Location> </Location>
<Location /dav/>
AuthType Digest
AuthName "WebDAV on davhost.example.com"
AuthDigestDomain /dav/
AuthDigestProvider file
AuthUserFile /var/www/auth/dav.htdigest
AuthGroupFile /var/www/auth/dav.groups
</Location>
ErrorLog /var/log/apache2/davhost.example.com_error.log ErrorLog /var/log/apache2/davhost.example.com_error.log
LogLevel warn LogLevel warn
CustomLog /var/log/apache2/davhost.example.com_access.log combined CustomLog /var/log/apache2/davhost.example.com_access.log combined