/[smeserver]/rpms/e-smith-ibays/sme9/e-smith-ibays-2.4.0-force-https.patch
ViewVC logotype

Diff of /rpms/e-smith-ibays/sme9/e-smith-ibays-2.4.0-force-https.patch

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

Revision 1.1 by wellsi, Sun Dec 1 03:37:41 2013 UTC Revision 1.2 by stephdl, Sun Mar 9 08:25:12 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