1 |
diff -urN smeserver-unjunkmgr-3.1.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/98unjunkmgr smeserver-unjunkmgr-3.1/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/98unjunkmgr |
2 |
--- smeserver-unjunkmgr-3.1.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/98unjunkmgr 2022-07-22 15:54:33.449191875 +0300 |
3 |
+++ smeserver-unjunkmgr-3.1/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/98unjunkmgr 2022-07-22 15:58:04.820139557 +0300 |
4 |
@@ -32,16 +32,13 @@ |
5 |
$OUT .= " Options +FollowSymLinks +ExecCGI\n"; |
6 |
$OUT .= " AllowOverride All\n"; |
7 |
$OUT .= " <FilesMatch \.php\$\>\n"; |
8 |
- $OUT .= " order deny,allow\n"; |
9 |
$OUT .= " SetHandler \"proxy:unix:/var/run/php-fpm/php$version.sock|fcgi://localhost\"\n"; |
10 |
$OUT .= " </FilesMatch>\n"; |
11 |
- $OUT .= " order deny,allow\n"; |
12 |
- $OUT .= " deny from all\n"; |
13 |
|
14 |
if (uc($local) eq 'YES') { |
15 |
- $OUT .= " allow from $localAccess\n"; |
16 |
+ $OUT .= " Require ip $localAccess\n"; |
17 |
} else { |
18 |
- $OUT .= " allow from all\n"; |
19 |
+ $OUT .= " Require all granted\n"; |
20 |
} |
21 |
|
22 |
$OUT .= "</Directory>\n"; |