/[smeserver]/rpms/e-smith-ibays/sme8/e-smith-ibays-2.2.0_force_ssl_to_domains.patch
ViewVC logotype

Annotation of /rpms/e-smith-ibays/sme8/e-smith-ibays-2.2.0_force_ssl_to_domains.patch

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


Revision 1.1 - (hide annotations) (download)
Thu Apr 24 16:49:18 2014 UTC (10 years, 7 months ago) by stephdl
Branch: MAIN
add e-smith-ibays-2.2.0_force_ssl_to_domains.patch for bug 8331

1 stephdl 1.1 diff -Nur e-smith-ibays-2.2.0.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/20IbayContent e-smith-ibays-2.2.0/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/20IbayContent
2     --- e-smith-ibays-2.2.0.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/20IbayContent 2014-04-17 21:23:03.165419209 +0200
3     +++ e-smith-ibays-2.2.0/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/20IbayContent 2014-04-17 21:27:34.637946852 +0200
4     @@ -10,9 +10,16 @@
5     my $ibay = $virtualHostContent;
6     my $basedir = "/home/e-smith/files/ibays/$ibay";
7     my $cgiBin = $accounts->get_prop($ibay, "CgiBin") || "";
8     + my $ssl_domain = $accounts->get_prop($ibay, 'SSL') || 'disabled';
9    
10     $OUT .= " DocumentRoot $basedir/html\n";
11    
12     + my $SSLPort = $modSSL{'TCPPort'} || '443';
13     + if (( $port ne $SSLPort ) && ( $ssl_domain eq 'enabled')){
14     + $OUT .= " RewriteEngine on\n";
15     + $OUT .= " RewriteRule ^/(/.*|\$) https://%{HTTP_HOST}/\$1 [R,L]\n";
16     + }
17     +
18     if ($cgiBin)
19     {
20     $OUT .= " ScriptAlias /cgi-bin $basedir/cgi-bin\n";

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