## Default docroot DocumentRoot "/var/www/html/" ## Directories, there should at least be a declaration for DocumentRoot Options +FollowSymlinks -Indexes AllowOverride All ## Logging ErrorLog "/var/log/apache2/localhost_error.log" ServerSignature Off CustomLog "/var/log/apache2/localhost_access.log" combined ## Redirect rules RewriteEngine On RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [R=301,L]