encoding fix noch nicht getestet
libapache2-mod-encoding
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
:
<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>