Redirect to SSL

tags/smeserver-dl-0.2.1-1
Daniel Berteaud 11 years ago
parent 35350ecaba
commit 80cdb0193d
  1. 10
      root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/61RedirDl

@ -0,0 +1,10 @@
{
my $sslport = $modSSL{'TCPPort'} || '443';
my $status = $dl{'status'} || 'enabled';
my $alias = $dl{'AliasOnPrimary'} || 'enabled';
if (($port ne $sslport) && ($status eq 'enabled') && ($alias eq 'enabled')){
$OUT .= " RewriteEngine on\n";
$OUT .= " RewriteRule ^/dl(/.*|\$) https://%{HTTP_HOST}/dl\$1 \[L,R\]\n";
}
}
Loading…
Cancel
Save