<VirtualHost *:80>
RewriteEngine on
RewriteCond %{SERVER_PORT} =80
RewriteRule ^(.*) https://%{SERVER_NAME}%{REQUEST_URI}
</VirtualHost>
<VirtualHost *:443>
ServerAdmin webmaster@localhost
SSLEngine on
SSLOptions +StdEnvVars +ExportCertData
# SSLCertificateFile /etc/apache2/apache.pem
SSLCertificateFile /etc/apache2/certificados/Servidor_certificado.crt
SSLCertificateKeyFile /etc/apache2/certificados/Servidor_privada.key
SSLCACertificateFile /etc/apache2/certificados/CertificadosRaiz.crt
DocumentRoot /var/www/
# <Directory />
# Options FollowSymLinks
# AllowOverride All
# </Directory>
<Directory /var/www/>
Options -Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
<Location /rtorrent.CFF9640E>
AuthType Digest
AuthName "rtorrent"
AuthDigestDomain /var/www/rtorrent/ https://ks358174.kimsufi.com/rtorrent
AuthDigestProvider file
AuthUserFile /etc/apache2/htpasswd3
Require valid-user
Options Indexes
Order allow,deny
allow from all
</Location>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
<Location /rutorrent>
AuthType Digest
AuthName "rutorrent"
AuthDigestDomain /var/www/rutorrent/ https://ks358174.kimsufi.com/rutorrent
AuthDigestProvider file
AuthUserFile /etc/apache2/htpasswd3
Require valid-user
# SetEnv R_ENV "/var/www/rutorrent"
Options Indexes
Order allow,deny
allow from all
</Location>
<Directory /var/www/rutorrentcert>
SSLVerifyClient require
SSLVerifyDepth 2
SSLRequire (%{SSL_CLIENT_V_REMAIN} >= "0" \
and %{SSL_CLIENT_I_DN_O} eq "Mate")
# ErrorDocument 403 https://...
</Directory>
</VirtualHost>