14 lines
407 B
Plaintext
14 lines
407 B
Plaintext
{
|
|
my $sslport = $modSSL{'TCPPort'} || '443';
|
|
my $status = $owncloud{'status'} || 'enabled';
|
|
my $alias = $owncloud{'AliasOnPrimary'} || 'enabled';
|
|
|
|
if (($port ne $sslport) && ($status eq 'enabled') && ($alias eq 'enabled')){
|
|
|
|
## Redirect Web Address to Secure Address
|
|
$OUT .= " RewriteEngine on\n";
|
|
$OUT .= " RewriteRule ^/owncloud(/.*|\$) https://%{HTTP_HOST}/owncloud\$1 \[L,R\]\n";
|
|
|
|
}
|
|
}
|