# The port 80 host is required for renewing Let's Encrypt certificates. By default document root is shared by all sites # requiring SSL support, but this may be changed to {{ deploy.shared_path }}/maint/www in the deployment template if # a custom maintenance site is required. ServerName {{ domain_name }} ServerAlias *.{{ domain_name }} RewriteEngine On RewriteCond %{HTTPS} off RewriteCond %{REQUEST_URI} !^/.well-known [NC] RewriteRule (.*) https://%{SERVER_NAME}/$1 [R,L] DocumentRoot /var/www/maint/www