Dies ist eine alte Version des Dokuments!
libapache2-mod-encoding
a2enmod dav* encoding
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>