1 |
diff -Nur --no-dereference smeserver-mod_dav-1.1.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/95Addmod_dav2ibays smeserver-mod_dav-1.1/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/95Addmod_dav2ibays |
diff -Nur --no-dereference smeserver-mod_dav-1.1.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/95Addmod_dav2ibays smeserver-mod_dav-1.1/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/95Addmod_dav2ibays |
2 |
--- smeserver-mod_dav-1.1.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/95Addmod_dav2ibays 2022-07-28 23:51:31.454000000 -0400 |
--- smeserver-mod_dav-1.1.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/95Addmod_dav2ibays 2022-07-28 23:51:31.454000000 -0400 |
3 |
+++ smeserver-mod_dav-1.1/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/95Addmod_dav2ibays 2022-07-29 00:15:04.844000000 -0400 |
+++ smeserver-mod_dav-1.1/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/95Addmod_dav2ibays 2022-07-29 00:52:11.073000000 -0400 |
4 |
@@ -13,7 +13,7 @@ |
@@ -13,7 +13,7 @@ |
5 |
$OUT .= "\n # ibay $key disabled for httpd so no DAV access\n" if $access eq 'none'; |
$OUT .= "\n # ibay $key disabled for httpd so no DAV access\n" if $access eq 'none'; |
6 |
next if $access eq 'none'; |
next if $access eq 'none'; |
10 |
if ($properties{'ModDav'}) |
if ($properties{'ModDav'}) |
11 |
{ |
{ |
12 |
if ($properties{'ModDav'} eq 'enabled') |
if ($properties{'ModDav'} eq 'enabled') |
13 |
@@ -35,7 +35,7 @@ |
@@ -32,10 +32,10 @@ |
14 |
$OUT .= " <FilesMatch \\.php\$>\n"; |
if ($dynamicContent eq 'enabled' && $secureEXEC eq 'enabled') |
15 |
|
{ |
16 |
|
# we do not want PHP or CGI to be runt there for security reason |
17 |
|
- $OUT .= " <FilesMatch \\.php\$>\n"; |
18 |
|
+ $OUT .= " <FilesMatch \\.(phar|php)\$>\n"; |
19 |
$OUT .= " #disabling php\n"; |
$OUT .= " #disabling php\n"; |
20 |
$OUT .= " SetHandler !\n"; # could use also SetHandler none |
$OUT .= " SetHandler !\n"; # could use also SetHandler none |
21 |
- $OUT .= " deny from all\n" if ( $properties{'ModDavHidePHP'} || 'enabled' ) eq 'enabled'; |
- $OUT .= " deny from all\n" if ( $properties{'ModDavHidePHP'} || 'enabled' ) eq 'enabled'; |
56 |
- $OUT .= " " . $WriteRequire . "\n"; |
- $OUT .= " " . $WriteRequire . "\n"; |
57 |
- $OUT .= " Satisfy All\n"; |
- $OUT .= " Satisfy All\n"; |
58 |
- $OUT .= " ". $WriteAllow ."\n"; |
- $OUT .= " ". $WriteAllow ."\n"; |
59 |
+ $OUT .= " <RequireAll>n"; |
+ $OUT .= " <RequireAll>\n"; |
60 |
+ $OUT .= " " . $WriteRequire . "\n"; |
+ $OUT .= " " . $WriteRequire . "\n"; |
61 |
+ $OUT .= " ". $WriteAllow ."\n"; |
+ $OUT .= " ". $WriteAllow ."\n"; |
62 |
+ $OUT .= " </RequireAll>n"; |
+ $OUT .= " </RequireAll>\n"; |
63 |
$OUT .= " </LimitExcept>\n\n"; |
$OUT .= " </LimitExcept>\n\n"; |
64 |
$OUT .= "</Directory>\n"; |
$OUT .= "</Directory>\n"; |
65 |
} |
} |