8 |
- |
- |
9 |
+ my $SSLPort = $modSSL{'TCPPort'} || '443'; |
+ my $SSLPort = $modSSL{'TCPPort'} || '443'; |
10 |
+ |
+ |
11 |
+ if (( $port ne $SSLPort ) && (($ibay->prop('SSL') || 'enabled') eq 'enabled')){ |
+ if (( $port ne $SSLPort ) && (($ibay->prop('SSL') || 'disabled') eq 'enabled')){ |
12 |
+ $OUT .= " RewriteEngine on\n"; |
+ $OUT .= " RewriteEngine on\n"; |
13 |
+ $OUT .= " RewriteRule ^/$key(/.*|\$) https://%{HTTP_HOST}/$key\$1 \[L,R\]\n"; |
+ $OUT .= " RewriteRule ^/$key(/.*|\$) https://%{HTTP_HOST}/$key\$1 \[L,R\]\n"; |
14 |
+ } |
+ } |