diff --git a/data/etc/apache2/sites-available/plinth-ssl.conf b/data/etc/apache2/sites-available/plinth-ssl.conf index a7831936c..202e1bf1b 100644 --- a/data/etc/apache2/sites-available/plinth-ssl.conf +++ b/data/etc/apache2/sites-available/plinth-ssl.conf @@ -10,6 +10,9 @@ ## RewriteEngine on + # Don't redirect for onion sites as it is not needed and leads to + # unnecessary warning. + RewriteCond %{HTTP_HOST} !^.*\.onion$ [NC] ReWriteCond %{HTTPS} !=on RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]