Linuxhotel Wiki

Wie ging das nochmal?

Benutzer-Werkzeuge

Webseiten-Werkzeuge


fortgeschrittene:apache-webdav

Dies ist eine alte Version des Dokuments!


Apache mit WebDAV

Vorraussetzungen

Konfiguration

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 :

<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>

Gnome / OpenOffice Webdav Bug

fortgeschrittene/apache-webdav.1282746781.txt.gz · Zuletzt geändert: 2012/08/30 07:20 (Externe Bearbeitung)