Set up a WebDAV in Apache

/etc/httpd/conf.d/steier.conf:

# Special entries for peter steier’s webdav

Alias /elekpr /wwwera/docs/share/elekpr/public
Alias /elekpr_betreuer /wwwera/docs/share/elekpr
Alias /vera_share /wwwera/docs/share
<Location /elekpr_betreuer>
Dav on
Options FollowSymLinks Includes MultiViews
AllowOverride AuthConfig Options Indexes
AddDefaultCharset utf-8
IndexOptions Charset=utf-8
Options +Indexes
AuthName “Zugriff nur mit UserID (betreuer260108) und Passwort!”
AuthType Digest
AuthDigestProvider file
AuthUserFile /wwwera/docs/share/elekpr/.htpasswd
AuthGroupFile /dev/null
Require user betreuer260108
SSLRequireSSL
# ForceType text/plain
</Location>

<Location /elekpr>
Options FollowSymLinks Includes MultiViews
AllowOverride AuthConfig Options Indexes
Order allow,deny
Allow from all
AddDefaultCharset utf-8
IndexOptions Charset=utf-8
Options +Indexes
AuthName “Zugriff nur mit UserID (hoerer260108) und Passwort!”
AuthType Digest
AuthDigestProvider file
AuthUserFile /wwwera/docs/share/elekpr/.htpasswd
AuthGroupFile /dev/null
Require valid-user
SSLRequireSSL
</Location>

# the following does not work since WebDAV is always wwwrun…
<Location /vera_share>
Dav on
Options FollowSymLinks Includes MultiViews
AllowOverride AuthConfig Options Indexes
AddDefaultCharset utf-8
IndexOptions Charset=utf-8
Options +Indexes
AuthName “Zugriff nur mit UserID csadmin und Passwort!”
AuthType Digest
AuthDigestProvider file
AuthUserFile /wwwera/docs/share/.htpasswd
AuthGroupFile /dev/null
Require user csadmin
SSLRequireSSL
# ForceType text/plain
</Location>

htdigest -c /wwwera/docs/share/.htpasswd “Zugriff nur mit UserID csadmin und Passwort\!” csadmin

 

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: