/[smecontribs]/rpms/smeserver-phpsysinfo/contribs10/smeserver-phpsysinfo-3.2.3-bz12057-httpd24.patch
ViewVC logotype

Contents of /rpms/smeserver-phpsysinfo/contribs10/smeserver-phpsysinfo-3.2.3-bz12057-httpd24.patch

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


Revision 1.1 - (show annotations) (download)
Sun Jul 24 04:38:11 2022 UTC (2 years, 4 months ago) by jpp
Branch: MAIN
CVS Tags: smeserver-phpsysinfo-3_2_3-5_el7_sme
* Sun Jul 24 2022 Jean-Philippe Pialasse <tests@pialasse.com> 3.2.3-5.sme
- update to httpd 2.4 access syntax [SME: 12057]

1 diff -Nur --no-dereference smeserver-phpsysinfo-3.2.3.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/86PhpsysinfoAlias smeserver-phpsysinfo-3.2.3/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/86PhpsysinfoAlias
2 --- smeserver-phpsysinfo-3.2.3.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/86PhpsysinfoAlias 2022-07-24 00:25:03.153000000 -0400
3 +++ smeserver-phpsysinfo-3.2.3/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/86PhpsysinfoAlias 2022-07-24 00:33:44.744000000 -0400
4 @@ -4,32 +4,30 @@
5 <Directory /opt/phpsysinfo>
6 SSLRequireSSL
7 Options -Indexes
8 - AllowOverride None
9 - order deny,allow
10 - deny from all
11 -{
12 -my $access = ($phpsysinfo{'access'} || 'private');
13 -if ("$access" eq "private")
14 - {
15 - $OUT .= " allow from $localAccess $externalSSLAccess";
16 - }
17 - elsif ("$access" eq "public")
18 - {
19 - $OUT .= " allow from all";
20 - }
21 -}
22 AuthName "phpSysInfo"
23 AuthBasicProvider external
24 AuthType Basic
25 AuthExternal pwauth
26 - require user admin
27 - Satisfy all
28 +
29 + <IfModule mod_access_compat.c>
30 + AllowOverride None
31 + order deny,allow
32 + deny from all
33 + allow from {(($phpsysinfo{access} || 'private' ) eq "public" ) ? "all": "$localAccess $externalSSLAccess";}
34 + Require user admin
35 + Satisfy all
36 + </IfModule>
37 + <IfModule !mod_access_compat.c>
38 + <RequireAll>
39 + Require user admin
40 + Require {(($phpmyadmin{access} || 'private' ) eq "public" ) ? "all granted": "ip $localAccess $externalSSLAccess";}
41 + </RequireAll>
42 + </IfModule>
43 +
44 AddType application/x-httpd-php .php .php3
45 -<FilesMatch .php$>
46 + <FilesMatch .php$>
47 SetHandler "proxy:unix:/var/run/php-fpm/php.sock|fcgi://localhost"
48 -</FilesMatch>
49 + </FilesMatch>
50
51 - #php_flag magic_quotes_gpc on
52 - #php_flag track_vars on
53 </Directory>
54

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