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

Annotation 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


Revision 1.3 - (hide annotations) (download)
Tue Jun 17 18:33:59 2014 UTC (10 years ago) by unnilennium
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +0 -0 lines
FILE REMOVED
Initial import to v9

1 unnilennium 1.1 diff -up smeserver-bandwidthd-2.0.1.1/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/86bandwidthd.requireSSL smeserver-bandwidthd-2.0.1.1/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/86bandwidthd
2     --- smeserver-bandwidthd-2.0.1.1/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/86bandwidthd.requireSSL 2013-12-30 13:03:28.000000000 -0500
3     +++ smeserver-bandwidthd-2.0.1.1/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/86bandwidthd 2013-12-30 13:06:39.000000000 -0500
4     @@ -60,6 +60,7 @@
5     $OUT .= "<Directory /var/www/bandwidthd/htdocs>\n";
6     $OUT .= " AddType application/x-httpd-php .php .conf\n";
7     $OUT .= " php_admin_value open_basedir /var/www/bandwidthd/htdocs\n";
8     + $OUT .= " SSLRequireSSL\n";
9     $OUT .= " Options None\n";
10     $OUT .= " order deny,allow\n";
11     $OUT .= " deny from all\n";
12     @@ -94,6 +95,7 @@
13     $OUT .= "<Directory /var/www/bandwidthd/phphtdocs>\n";
14     $OUT .= " AddType application/x-httpd-php .php .conf\n";
15     $OUT .= " php_admin_value open_basedir /var/www/bandwidthd/phphtdocs\n";
16     + $OUT .= " SSLRequireSSL\n";
17     $OUT .= " Options None\n";
18     $OUT .= " order deny,allow\n";
19     $OUT .= " deny from all\n";
20     diff -up smeserver-bandwidthd-2.0.1.1/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/80bandwidthd.requireSSL smeserver-bandwidthd-2.0.1.1/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/80bandwidthd
21     --- smeserver-bandwidthd-2.0.1.1/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/80bandwidthd.requireSSL 2013-12-30 13:13:00.000000000 -0500
22     +++ smeserver-bandwidthd-2.0.1.1/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/80bandwidthd 2013-12-30 13:17:41.000000000 -0500
23     @@ -0,0 +1,16 @@
24     +{
25     + my $status = $bandwidthd{'status'} || "disabled";
26     + return " # bandwidthd is disabled in this VirtualHost"
27     + unless $status eq 'enabled';
28     + $haveSSL = (exists ${modSSL}{status} and ${modSSL}{status} eq "enabled") ? 'yes' : 'no';
29     +
30     +if (($port ne "443") && ($haveSSL eq 'yes') )
31     + {
32 unnilennium 1.2 + $OUT .= "RewriteEngine on\n";
33 unnilennium 1.1 + $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";
35     + $OUT .= " RewriteRule ^/bandwidthd-static(/.*|\$) https://%{HTTP_HOST}/bandwidthd-static\$1 [L,R]\n";
36 unnilennium 1.2 + if (exists $bandwidthd{'URL'})
37 unnilennium 1.1 + { $OUT .= " RewriteRule ^/$bandwidthd{'URL'} https://%{HTTP_HOST}/$bandwidthd{'URL'}\$1 [L,R]\n"; }
38     + }
39     +}

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