If you’re interested in making http://your.domain.net automatically forward to https://your.domain.net you can edit the following:
sudo nano /etc/apache2/sites-enabled/default-ssl.conf
scroll down until you find:
<VirtualHost *:80>
go to the bottom of that section, just above:
</VirtualHost>
insert the following lines, replacing your.domain.net with your letsencrypt domain
RewriteEngine on
RewriteCond %{SERVER_NAME} =your.domain.net
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,QSA,R=permanent]
the whole virtualhost sectoin should look something like this, remember to leave <VirtualHost *:443>
alone
<VirtualHost *:80>
DocumentRoot "/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 /user 127.0.0.1:66372
RewriteEngine on
RewriteCond %{SERVER_NAME} =your.domain.net
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,QSA,R=permanent]
</VirtualHost>