Redirection SSL si auth LL::NG
This commit is contained in:
parent
3366e27941
commit
9667b50445
|
@ -1,11 +1,11 @@
|
|||
{
|
||||
my $ssl = $domain->prop('RequireSSL') || 'disabled';
|
||||
my $lemon = $domain->prop('LemonLDAP') || 'disabled';
|
||||
my $auth = $domain->prop('Authentication') || 'none';
|
||||
|
||||
if (($modSSL{TCPPort} || "443") eq $port){
|
||||
$OUT .= " SSLEngine on\n";
|
||||
}
|
||||
elsif (($ssl =~ m/^enabled|yes|on|1$/i) || ($lemon eq 'enabled')){
|
||||
elsif (($ssl =~ m/^enabled|yes|on|1$/i) || ($auth eq 'LemonLDAP')){
|
||||
$OUT .=<<'EOF';
|
||||
RewriteEngine on
|
||||
RewriteRule ^/(.*|$) https://%{HTTP_HOST}/$1 [L,R]
|
||||
|
|
Loading…
Reference in New Issue