17 lines
340 B
Plaintext
17 lines
340 B
Plaintext
{
|
|
my $ssl = $domain->prop('RequireSSL') || 'disabled';
|
|
|
|
if (($modSSL{TCPPort} || "443") eq $port){
|
|
$OUT .= " SSLEngine on\n";
|
|
}
|
|
else {
|
|
$OUT .=<<'EOF';
|
|
RewriteEngine on
|
|
RewriteCond %{REQUEST_URI} !^/.well-known/acme-challenge/.*
|
|
RewriteRule ^/(.*|$) https://%{HTTP_HOST}/$1 [L,R]
|
|
|
|
EOF
|
|
}
|
|
}
|
|
|