Skip to content

Instantly share code, notes, and snippets.

Created June 11, 2017 00:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/979453aad6c69f73309e41a92b51b934 to your computer and use it in GitHub Desktop.
Save anonymous/979453aad6c69f73309e41a92b51b934 to your computer and use it in GitHub Desktop.
SSLPassPhraseDialog builtin
SSLSessionCache shmcb:/var/cache/mod_ssl/scache(512000)
SSLSessionCacheTimeout 300
#SSLMutex default
SSLRandomSeed startup file:/dev/urandom 256
SSLRandomSeed connect builtin
SSLCryptoDevice builtin
<VirtualHost *:80>
ServerName domain.tld
DocumentRoot "/srv/rutorrent/home"
Alias /qb /srv/rutorrent/home
<Directory "/srv/rutorrent/home/">
Options Indexes FollowSymLinks
AllowOverride All AuthConfig
Order allow,deny
Allow from all
AuthType Digest
AuthName "rutorrent"
AuthUserFile '/etc/htpasswd'
Require valid-user
</Directory>
SCGIMount /username 127.0.0.1:53517
</VirtualHost>
<VirtualHost *:443>
Options +Indexes +MultiViews +FollowSymLinks
SSLEngine on
ServerName domain.tld
DocumentRoot "/srv/rutorrent/home"
Alias /qb /srv/rutorrent/home
<Directory "/srv/rutorrent/home/">
Options +Indexes +FollowSymLinks +MultiViews
AllowOverride All AuthConfig
Order allow,deny
Allow from all
AuthType Digest
AuthName "rutorrent"
AuthUserFile '/etc/htpasswd'
Require valid-user
</Directory>
SSLEngine on
SSLProtocol all -SSLv2
SSLCipherSuite ALL:!ADH:!EX53517:!SSLv2:RC4+RSA:+HIGH:+MEDIUM:+LOW
SSLCertificateFile /etc/apache2/ssl/certs/domain.tld-ssl.pem
SSLCertificateKeyFile /etc/apache2/ssl/certs/domain.tld-ssl.key
SetEnvIf User-Agent ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
SCGIMount /username 127.0.0.1:53517
</Virtualhost>
<VirtualHost *:80>
ServerName domain.tld
DocumentRoot "/var/www/html"
Alias / /var/www/html
<Directory "/var/www/html/">
Options Indexes FollowSymLinks
AllowOverride All AuthConfig
Order allow,deny
Allow from all
Require all granted
</Directory>
</VirtualHost>
<VirtualHost *:443>
Options +Indexes +MultiViews +FollowSymLinks
SSLEngine on
ServerName domain.tld
DocumentRoot "/var/www/html"
Alias / /var/www/html
<Directory "/var/www/html/">
Options +Indexes +FollowSymLinks +MultiViews
AllowOverride All AuthConfig
Order allow,deny
Allow from all
Require all granted
</Directory>
SSLEngine on
SSLProtocol all -SSLv2
SSLCipherSuite ALL:!ADH:!EX53517:!SSLv2:RC4+RSA:+HIGH:+MEDIUM:+LOW
SSLCertificateFile /etc/apache2/ssl/certs/domain.tld-ssl.pem
SSLCertificateKeyFile /etc/apache2/ssl/certs/domain.tld-ssl.key
SetEnvIf User-Agent ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
</Virtualhost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment