Also force SSL (transparent redirect) when using LemonLDAPBasic auth

tags/0.2.10_el5 0.2.10_el5
Daniel Berteaud 11 years ago
parent 20de016b19
commit ac5aec45ab
  1. 2
      root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/WebAppVirtualHost/25SSLDirectives

@ -5,7 +5,7 @@
if (($modSSL{TCPPort} || "443") eq $port){
$OUT .= " SSLEngine on\n";
}
elsif (($ssl =~ m/^enabled|yes|on|1$/i) || ($auth eq 'LemonLDAP')){
elsif (($ssl =~ m/^enabled|yes|on|1$/i) || ($auth =~ /^LemonLDAP/)){
$OUT .=<<'EOF';
RewriteEngine on
RewriteRule ^/(.*|$) https://%{HTTP_HOST}/$1 [L,R]

Loading…
Cancel
Save