smeserver-sogosync/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/61RedirSOGoSync

14 lines
371 B
Plaintext

{
my $sslport = $modSSL{'TCPPort'} || '443';
my $sogosync = $sogosync{'status'} || 'enabled';
if (($port ne $sslport) && ($sogosync eq 'enabled')){
## Redirect Web Address to Secure Address
$OUT .= " RewriteEngine on\n";
$OUT .= " RewriteRule ^/Microsoft-Server-ActiveSync(/.*|\$) https://%{HTTP_HOST}/Microsoft-Server-ActiveSync\$1 \[L,R\]\n";
}
}