/[smecontribs]/rpms/smeserver-bandwidthd/contribs8/smeserver-bandwidthd-2.0.1.1-requireSSL.patch
ViewVC logotype

Diff of /rpms/smeserver-bandwidthd/contribs8/smeserver-bandwidthd-2.0.1.1-requireSSL.patch

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

Revision 1.1 by unnilennium, Mon Dec 30 18:19:45 2013 UTC Revision 1.2 by unnilennium, Tue Dec 31 06:58:00 2013 UTC
# Line 29  diff -up smeserver-bandwidthd-2.0.1.1/ro Line 29  diff -up smeserver-bandwidthd-2.0.1.1/ro
29  +  +
30  +if (($port ne "443") && ($haveSSL eq 'yes') )  +if (($port ne "443") && ($haveSSL eq 'yes') )
31  +       {  +       {
32  +       $OUT .= "RewriteEngine on";  +       $OUT .= "RewriteEngine on\n";
33  +       $OUT .= "    RewriteRule ^/bandwidthd(/.*|\$)    https://%{HTTP_HOST}/bandwidthd\$1 [L,R]\n";  +       $OUT .= "    RewriteRule ^/bandwidthd(/.*|\$)    https://%{HTTP_HOST}/bandwidthd\$1 [L,R]\n";
34  +        $OUT .= "    RewriteRule ^/bandwidthd-php(/.*|\$)    https://%{HTTP_HOST}/bandwidthd-php\$1 [L,R]\n";  +        $OUT .= "    RewriteRule ^/bandwidthd-php(/.*|\$)    https://%{HTTP_HOST}/bandwidthd-php\$1 [L,R]\n";
35  +        $OUT .= "    RewriteRule ^/bandwidthd-static(/.*|\$)    https://%{HTTP_HOST}/bandwidthd-static\$1 [L,R]\n";  +        $OUT .= "    RewriteRule ^/bandwidthd-static(/.*|\$)    https://%{HTTP_HOST}/bandwidthd-static\$1 [L,R]\n";
36  +    if (exists $<!--[NAME]-->{'URL'})  +    if (exists $bandwidthd{'URL'})
37  +       { $OUT .= "    RewriteRule ^/$bandwidthd{'URL'}  https://%{HTTP_HOST}/$bandwidthd{'URL'}\$1 [L,R]\n"; }  +       { $OUT .= "    RewriteRule ^/$bandwidthd{'URL'}  https://%{HTTP_HOST}/$bandwidthd{'URL'}\$1 [L,R]\n"; }
38  +       }  +       }
39  +}  +}


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