ServerName localhost <VirtualHost *:80> ServerAdmin admin@rutorrent ServerName localhost DocumentRoot /var/rutorrent <Directory /> AllowOverride None Order deny,allow Deny from all </Directory> <Location /> AuthType Basic AuthName "My ruTorrent web site" AuthUserFile "/etc/apache2/rutorrent_passwd" Require valid-user Order allow,deny Allow from all </Location> <Location ~ "^/rutorrent/(conf|share)"> Order deny,allow Deny from all </Location> <Location ~ "/\\.svn"> Order deny,allow Deny from all </Location> <Location "/RPC00001"> AuthType Basic AuthName "My ruTorrent web site" AuthUserFile "/etc/apache2/rutorrent_passwd" Require user yes </Location> </VirtualHost> <VirtualHost *:443> SSLEngine On SSLCertificateFile /etc/apache2/rutorrent.pem ServerAdmin admin@rutorrent ServerName localhost DocumentRoot /var/rutorrent <Directory /> AllowOverride None Order deny,allow Deny from all </Directory> <Location /> AuthType Basic AuthName "My ruTorrent web site" AuthUserFile "/etc/apache2/rutorrent_passwd" Require valid-user Order allow,deny Allow from all </Location> <Location ~ "^/rutorrent/(conf|share)"> Order deny,allow Deny from all </Location> <Location ~ "/\\.svn"> Order deny,allow Deny from all </Location> <Location "/RPC00001"> AuthType Basic AuthName "My ruTorrent web site" AuthUserFile "/etc/apache2/rutorrent_passwd" Require user yes </Location> </VirtualHost>