/[smecontribs]/rpms/smeserver-roundcube/contribs8/smeserver-roundcube-0.9-force-https.patch
ViewVC logotype

Contents of /rpms/smeserver-roundcube/contribs8/smeserver-roundcube-0.9-force-https.patch

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


Revision 1.1 - (show annotations) (download)
Sun Oct 27 17:48:17 2013 UTC (10 years, 6 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-roundcube-0_9-19_el5_sme, smeserver-roundcube-0_9-17_el5_sme, smeserver-roundcube-0_9-20_el5_sme, smeserver-roundcube-0_9-16_el5_sme, smeserver-roundcube-0_9-18_el5_sme, smeserver-roundcube-0_9-15, smeserver-roundcube-0_9-15_el5_sme, HEAD
Initial import of srpm

1 diff -Nur smeserver-roundcube-0.9-old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/30RoundCubeAliases smeserver-roundcube-0.9/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/30RoundCubeAliases
2 --- smeserver-roundcube-0.9-old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/30RoundCubeAliases 2013-10-20 15:47:13.000000000 +0200
3 +++ smeserver-roundcube-0.9/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/30RoundCubeAliases 1970-01-01 01:00:00.000000000 +0100
4 @@ -1,11 +0,0 @@
5 -{
6 - my $status = $roundcube{'status'} || "disabled";
7 - return " # roundcube is disabled in this VirtualHost"
8 - unless $status eq 'enabled';
9 -
10 - if ($port eq "443")
11 - {
12 - $OUT .= " ProxyPass /roundcube/ http://127.0.0.1/roundcube/\n";
13 - }
14 -}
15 -
16 diff -Nur smeserver-roundcube-0.9-old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/60RoundCube-force-https smeserver-roundcube-0.9/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/60RoundCube-force-https
17 --- smeserver-roundcube-0.9-old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/60RoundCube-force-https 1970-01-01 01:00:00.000000000 +0100
18 +++ smeserver-roundcube-0.9/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/60RoundCube-force-https 2013-10-20 15:55:58.000000000 +0200
19 @@ -0,0 +1,21 @@
20 +{
21 + my $status = $roundcube{'status'} || "disabled";
22 + return " # roundcube is disabled in this VirtualHost"
23 + unless $status eq 'enabled';
24 +
25 +{
26 +if ($port ne "443")
27 +{
28 +$OUT .= <<'HERE';
29 +## Redirect roundcubeWeb Address to Secure Address
30 +RewriteEngine on
31 +RewriteRule ^/roundcube https://%{HTTP_HOST}/roundcube
32 +
33 +## End Of Redirect
34 +HERE
35 +}
36 +}
37 +
38 +}
39 +
40 +

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