15 lines
392 B
Plaintext
15 lines
392 B
Plaintext
{
|
|
my $sslport = $modSSL{'TCPPort'} || '443';
|
|
my $alias = $grr{'AliasOnPrimary'} || 'enabled';
|
|
my $requiressl = $grr{'RequireSSL'} || 'yes';
|
|
|
|
if (($port ne $sslport) && ($requiressl ne 'no') && ($alias ne 'disabled')){
|
|
|
|
## Redirect Web Address to Secure Address
|
|
$OUT .= " RewriteEngine on\n";
|
|
$OUT .= " RewriteRule ^/grr(/.*|\$) https://%{HTTP_HOST}/grr\$1 \[L,R\]\n";
|
|
|
|
}
|
|
}
|
|
|