Hier werden die Unterschiede zwischen zwei Versionen gezeigt.
lpi2:apache-webdav [2012/08/30 07:57] |
lpi2:apache-webdav [2012/08/30 07:57] (aktuell) |
||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
+ | ====== 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'' : | ||
+ | |||
+ | <file> | ||
+ | # 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 | ||
+ | </file> | ||
+ | |||
+ | 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'' : | ||
+ | <file> | ||
+ | <VirtualHost *:80> | ||
+ | ServerName files.notebook25.linuxhotel.de | ||
+ | ServerAlias files | ||
+ | ServerAdmin webmaster@notebook25.linuxhotel.de | ||
+ | <IfModule mod_rewrite.c> | ||
+ | RewriteEngine On | ||
+ | #RewriteLog /var/log/apache2/files.notebook25.linuxhotel.de/rewrite.log | ||
+ | #RewriteLogLevel 3 | ||
+ | RewriteCond %{HTTPS} !=on | ||
+ | RewriteRule ^(.*) https://%{SERVER_NAME}/$1 [R,L] | ||
+ | </IfModule> | ||
+ | </VirtualHost> | ||
+ | |||
+ | <VirtualHost *:443> | ||
+ | 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 | ||
+ | | ||
+ | <IfModule dav_fs.c> | ||
+ | DavLockDB /var/lib/apache/dav/lock | ||
+ | </IfModule> | ||
+ | |||
+ | <IfModule dav.c> | ||
+ | <Location /> | ||
+ | DAV On | ||
+ | AuthType Basic | ||
+ | AuthName "files.notebook25.linuxhotel.de" | ||
+ | AuthUserFile /var/lib/apache/dav/htpasswd | ||
+ | Require valid-user | ||
+ | </Location> | ||
+ | </IfModule> | ||
+ | </VirtualHost> | ||
+ | </file> | ||
+ | |||
+ | |||
+ | ====== Gnome / OpenOffice Webdav Bug ====== | ||
+ | * https://bugs.launchpad.net/ubuntu/+source/openoffice.org/+bug/484855 | ||
+ | * https://bugzilla.gnome.org/show_bug.cgi?id=522532 | ||