/[smeserver]/rpms/e-smith-ibays/sme10/e-smith-ibays-2.6.0-bz10968-remove-hardcoded-ports.patch
ViewVC logotype

Contents of /rpms/e-smith-ibays/sme10/e-smith-ibays-2.6.0-bz10968-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:42:34 2020 UTC (4 years, 4 months ago) by jpp
Branch: MAIN
CVS Tags: e-smith-ibays-2_6_0-12_el7_sme, e-smith-ibays-2_6_0-17_el7_sme, e-smith-ibays-2_6_0-15_el7_sme, e-smith-ibays-2_6_0-16_el7_sme, e-smith-ibays-2_6_0-20_el7_sme, e-smith-ibays-2_6_0-18_el7_sme, e-smith-ibays-2_6_0-13_el7_sme, e-smith-ibays-2_6_0-19_el7_sme, e-smith-ibays-2_6_0-14_el7_sme, HEAD
* Sat Jun 27 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-12.sme
- remove hardcoded ports [SME: 10968]

1 diff -Nur e-smith-ibays-2.6.0.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/20IbayContent e-smith-ibays-2.6.0/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/20IbayContent
2 --- e-smith-ibays-2.6.0.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/20IbayContent 2016-02-05 17:52:37.000000000 -0500
3 +++ e-smith-ibays-2.6.0/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/20IbayContent 2020-06-27 14:37:46.069000000 -0400
4 @@ -14,10 +14,9 @@
5
6 $OUT .= " DocumentRoot $basedir/html\n";
7
8 - my $SSLPort = $modSSL{'TCPPort'} || '443';
9 - if (( $port ne $SSLPort ) && ( $ssl_domain eq 'enabled'))
10 + if (( $port ne $httpsPort ) && ( $ssl_domain eq 'enabled'))
11 {
12 - my $portspec = ($SSLPort eq 443) ? "" : ":$SSLPort";
13 + my $portspec = ($httpsPort eq 443) ? "" : ":$httpsPort";
14 $OUT .= " RewriteEngine on\n";
15 $OUT .= " RewriteRule ^/(.*|\$) https://%{HTTP_HOST}${portspec}/\$1 [R,L]\n";
16 }
17 @@ -51,10 +50,9 @@
18 $OUT .= "\n";
19 $OUT .= " # $key ibay ($name)\n";
20 $OUT .= "\n";
21 - my $SSLPort = $modSSL{'TCPPort'} || '443';
22
23 - if (( $port ne $SSLPort ) && (($ibay->prop('SSL') || 'disabled') eq 'enabled')){
24 - my $portspec = ($SSLPort eq 443) ? "" : ":$SSLPort";
25 + if (( $port ne $httpsPort ) && (($ibay->prop('SSL') || 'disabled') eq 'enabled')){
26 + my $portspec = ($httpsPort eq 443) ? "" : ":$httpsPort";
27 $OUT .= " RewriteEngine on\n";
28 $OUT .= " RewriteRule ^/$key(/.*|\$) https://%{HTTP_HOST}${portspec}/$key\$1 \[L,R\]\n";
29 }

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