52 lines
1.5 KiB
ApacheConf
52 lines
1.5 KiB
ApacheConf
<VirtualHost *:80>
|
|
ServerAdmin webmaster@davhost.yourdomain.net
|
|
ServerName davhost.yourdomain.net
|
|
|
|
DavLockDb /var/run/apache2/davlock/davhost.yourdomain.net
|
|
DocumentRoot /home/www/usr29/html
|
|
|
|
php_admin_value allow_call_time_pass_reference 1
|
|
<Directory /var/www/dav>
|
|
Dav on
|
|
AllowOverride AuthConfig Indexes
|
|
Order Allow,Deny
|
|
allow from all
|
|
|
|
AuthType Basic
|
|
AuthName "WebDAV on davhost"
|
|
AuthBasicAuthoritative Off
|
|
AuthUserFile /etc/apache2/auth/davhost.yourdomain.net
|
|
|
|
Auth_PG_host localhost
|
|
Auth_PG_port 5432
|
|
Auth_PG_user @dbuser@
|
|
Auth_PG_pwd @dbpassword@
|
|
Auth_PG_database @dbname@
|
|
|
|
Auth_PG_pwd_table dav_password
|
|
Auth_PG_uid_field username
|
|
Auth_PG_pwd_field password
|
|
|
|
Auth_PG_grp_table dav_group
|
|
Auth_PG_grp_user_field username
|
|
Auth_PG_grp_group_field groupname
|
|
Auth_PG_hash_type MD5
|
|
|
|
#Auth_PG_log_table dav_log
|
|
#Auth_PG_log_uname_field username
|
|
#Auth_PG_log_date_field reqdate
|
|
#Auth_PG_log_uri_field uri
|
|
#Auth_PG_log_addrs_field ipaddr
|
|
Auth_PG_authoritative on
|
|
|
|
require group davroot
|
|
</Directory>
|
|
|
|
ErrorLog /var/log/apache2/davhost.yourdomain.net_error.log
|
|
|
|
# Possible values include: debug, info, notice, warn, error, crit,
|
|
# alert, emerg.
|
|
LogLevel warn
|
|
|
|
CustomLog /var/log/apache2/davhost.yourdomain.net_access.log combined
|
|
</VirtualHost>
|