/[smeserver]/rpms/smeserver-horde/sme10/smeserver-horde-1.0.0-bz10969-remove-hardcoded-ports.patch
ViewVC logotype

Contents of /rpms/smeserver-horde/sme10/smeserver-horde-1.0.0-bz10969-remove-hardcoded-ports.patch

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


Revision 1.1 - (show annotations) (download)
Sat Jun 27 18:52:17 2020 UTC (4 years, 5 months ago) by jpp
Branch: MAIN
CVS Tags: smeserver-horde-1_0_0-21_el7_sme, smeserver-horde-1_0_0-33_el7_sme, smeserver-horde-1_0_0-27_el7_sme, smeserver-horde-1_0_0-22_el7_sme, smeserver-horde-1_0_0-25_el7_sme, smeserver-horde-1_0_0-20_el7_sme, smeserver-horde-1_0_0-26_el7_sme, smeserver-horde-1_0_0-29_el7_sme, smeserver-horde-1_0_0-18_el7_sme, smeserver-horde-1_0_0-30_el7_sme, smeserver-horde-1_0_0-35_el7_sme, smeserver-horde-1_0_0-32_el7_sme, smeserver-horde-1_0_0-28_el7_sme, smeserver-horde-1_0_0-23_el7_sme, smeserver-horde-1_0_0-31_el7_sme, smeserver-horde-1_0_0-19_el7_sme, smeserver-horde-1_0_0-34_el7_sme, smeserver-horde-1_0_0-24_el7_sme, HEAD
* Sat Jun 27 2020 Jean-Philipe Pialasse <tests@pialasse.com> 1.0.0-18.sme
- remove harcoded ports [SME: 10969]

1 diff -Nur smeserver-horde-1.0.0.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/30WebmailAliases smeserver-horde-1.0.0/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/30WebmailAliases
2 --- smeserver-horde-1.0.0.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/30WebmailAliases 2016-06-16 18:26:45.000000000 -0400
3 +++ smeserver-horde-1.0.0/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/30WebmailAliases 2020-06-27 14:47:23.150000000 -0400
4 @@ -14,9 +14,10 @@
5
6 foreach $place ('webmail','horde')
7 {
8 - if (($port eq "80") && ($haveSSL eq 'yes') && ($webmailAccessType eq 'SSL'))
9 + if (($port eq "$httpPort") && ($haveSSL eq 'yes') && ($webmailAccessType eq 'SSL'))
10 {
11 - $OUT .= " RewriteRule ^/$place(/.*|\$) https://%{HTTP_HOST}/$place\$1 [L,R]\n";
12 + my $portspec = ($httpsPort eq 443) ? "" : ":$httpsPort";
13 + $OUT .= " RewriteRule ^/$place(/.*|\$) https://%{HTTP_HOST}${portspec}/$place\$1 [L,R]\n";
14 } else {
15 $OUT .= " Alias /$place $dirs{$place}\n";
16 }
17 diff -Nur smeserver-horde-1.0.0.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/35HordeActivesyncAliases smeserver-horde-1.0.0/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/35HordeActivesyncAliases
18 --- smeserver-horde-1.0.0.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/35HordeActivesyncAliases 2016-06-16 15:10:56.000000000 -0400
19 +++ smeserver-horde-1.0.0/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/35HordeActivesyncAliases 2020-06-27 14:47:23.153000000 -0400
20 @@ -7,12 +7,13 @@
21 return " # ActiveSync is disabled"
22 unless $webmailStatus eq 'enabled' && $syncStatus eq 'enabled';
23
24 - if (($port eq "80") && ($syncStatus eq 'enabled') && ($haveSSL eq 'yes') && ($webmailAccessType eq 'SSL'))
25 + if (($port eq "$httpPort") && ($syncStatus eq 'enabled') && ($haveSSL eq 'yes') && ($webmailAccessType eq 'SSL'))
26 {
27 - $OUT .= " RewriteRule ^/Microsoft-Server-ActiveSync(/.*|\$) https://%{HTTP_HOST}/webmail/rpc.php\$1 [L,R]\n";
28 - $OUT .= " RewriteRule ^/autodiscover/autodiscover.xml(/.*|\$) https://%{HTTP_HOST}/webmail/rpc.php\$1 [L,R]\n";
29 - $OUT .= " RewriteRule ^/Autodiscover/Autodiscover.xml(/.*|\$) https://%{HTTP_HOST}/webmail/rpc.php\$1 [L,R]\n";
30 - $OUT .= " RewriteRule ^/AutoDiscover/AutoDiscover.xml(/.*|\$) https://%{HTTP_HOST}/webmail/rpc.php\$1 [L,R]\n";
31 + my $portspec = ($httpsPort eq 443) ? "" : ":$httpsPort";
32 + $OUT .= " RewriteRule ^/Microsoft-Server-ActiveSync(/.*|\$) https://%{HTTP_HOST}${portspec}/webmail/rpc.php\$1 [L,R]\n";
33 + $OUT .= " RewriteRule ^/autodiscover/autodiscover.xml(/.*|\$) https://%{HTTP_HOST}${portspec}/webmail/rpc.php\$1 [L,R]\n";
34 + $OUT .= " RewriteRule ^/Autodiscover/Autodiscover.xml(/.*|\$) https://%{HTTP_HOST}${portspec}/webmail/rpc.php\$1 [L,R]\n";
35 + $OUT .= " RewriteRule ^/AutoDiscover/AutoDiscover.xml(/.*|\$) https://%{HTTP_HOST}${portspec}/webmail/rpc.php\$1 [L,R]\n";
36 } else {
37 $OUT .= " Alias /Microsoft-Server-ActiveSync /usr/share/horde/rpc.php\n";
38 $OUT .= " Alias /autodiscover/autodiscover.xml /usr/share/horde/rpc.php\n";

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