/[smeserver]/rpms/e-smith-ibays/sme8/e-smith-ibays-2.2.0-force-https.patch
ViewVC logotype

Diff of /rpms/e-smith-ibays/sme8/e-smith-ibays-2.2.0-force-https.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.1 by burnat, Sun Feb 2 03:28:20 2014 UTC Revision 1.2 by wellsi, Mon Feb 24 16:08:41 2014 UTC
# Line 8  diff -Nur e-smith-ibays-2.4.0-original/r Line 8  diff -Nur e-smith-ibays-2.4.0-original/r
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  +           }  +           }


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed