--- rpms/smeserver-bandwidthd/contribs8/smeserver-bandwidthd-2.0.1.1-requireSSL.patch 2013/12/30 18:19:45 1.1 +++ rpms/smeserver-bandwidthd/contribs8/smeserver-bandwidthd-2.0.1.1-requireSSL.patch 2013/12/31 06:58:00 1.2 @@ -29,11 +29,11 @@ diff -up smeserver-bandwidthd-2.0.1.1/ro + +if (($port ne "443") && ($haveSSL eq 'yes') ) + { -+ $OUT .= "RewriteEngine on"; ++ $OUT .= "RewriteEngine on\n"; + $OUT .= " RewriteRule ^/bandwidthd(/.*|\$) https://%{HTTP_HOST}/bandwidthd\$1 [L,R]\n"; + $OUT .= " RewriteRule ^/bandwidthd-php(/.*|\$) https://%{HTTP_HOST}/bandwidthd-php\$1 [L,R]\n"; + $OUT .= " RewriteRule ^/bandwidthd-static(/.*|\$) https://%{HTTP_HOST}/bandwidthd-static\$1 [L,R]\n"; -+ if (exists ${'URL'}) ++ if (exists $bandwidthd{'URL'}) + { $OUT .= " RewriteRule ^/$bandwidthd{'URL'} https://%{HTTP_HOST}/$bandwidthd{'URL'}\$1 [L,R]\n"; } + } +}