====== Apache mit WebDAV ======
//encoding fix noch nicht getestet//
===== Vorraussetzungen =====
[[apache]], [[apache-ssl]]
===== Pakete =====
=== Debian 6.0 ===
libapache2-mod-encoding
===== Konfiguration =====
a2enmod dav* encoding
''/etc/apache2/mods-available/encoding.conf'' :
# create new
EncodingEngine on
SetServerEncoding UTF-8
DefaultClientEncoding UTF-8 CP932 EUCJP-MS
AddClientEncoding "Microsoft .* DAV 1.1" ASCII CP932 UTF-8
AddClientEncoding "Microsoft .* DAV" UTF-8 CP932
AddClientEncoding "(Microsoft .* DAV $)" UTF-8 CP932
AddClientEncoding "(Microsoft .* DAV 1.1)" CP932 UTF-8
AddClientEncoding "Microsoft-WebDAV*" UTF-8 CP932
AddClientEncoding "RMA/*" CP932
AddClientEncoding "xdwin9x/" CP932
AddClientEncoding "cadaver/" UTF-8 EUCJP-MS
AddClientEncoding "Mozilla/" EUCJP-MS
mkdir -p /var/log/apache2/files.notebook25.linuxhotel.de
mkdir -p /var/lib/apache/dav/htpasswd
htpasswd -c nutzer /var/lib/apache/dav/htpasswd
touch /var/lib/apache/dav/lock
chown www-data:www-data /var/lib/apache/dav/lock
''/etc/apache/sites-available/files.notebook25.linuxhotel.de'' :
ServerName files.notebook25.linuxhotel.de
ServerAlias files
ServerAdmin webmaster@notebook25.linuxhotel.de
RewriteEngine On
#RewriteLog /var/log/apache2/files.notebook25.linuxhotel.de/rewrite.log
#RewriteLogLevel 3
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*) https://%{SERVER_NAME}/$1 [R,L]
ServerName files.notebook25.linuxhotel.de
ServerAlias files
ServerAdmin webmaster@notebook25.linuxhotel.de
DocumentRoot /srv/files
ErrorLog /var/log/apache2/files.notebook25.linuxhotel.de/error.log
CustomLog /var/log/apache2/files.notebook25.linuxhotel.de/access.log combined
SSLEngine on
SSLCertificateFile /etc/ssl/certs/server.cert.pem
SSLCertificateKeyFile /etc/ssl/private/server.key.pem
DavLockDB /var/lib/apache/dav/lock
DAV On
AuthType Basic
AuthName "files.notebook25.linuxhotel.de"
AuthUserFile /var/lib/apache/dav/htpasswd
Require valid-user
====== Gnome / OpenOffice Webdav Bug ======
* https://bugs.launchpad.net/ubuntu/+source/openoffice.org/+bug/484855
* https://bugzilla.gnome.org/show_bug.cgi?id=522532