You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
571 B
12 lines
571 B
# 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.
|
|
<VirtualHost *:80>
|
|
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
|
|
</VirtualHost>
|
|
|