12 |
my %properties = $ibay->props; |
my %properties = $ibay->props; |
13 |
my $key = $ibay->key; |
my $key = $ibay->key; |
14 |
+ my $dynamicContent = $properties{'CgiBin'} || "disabled"; |
+ my $dynamicContent = $properties{'CgiBin'} || "disabled"; |
15 |
+ my $secureEXEC = $properties{'ModDAVsecureEXEC'} || 'enabled'; |
+ my $secureEXEC = $properties{'ModDavsecureEXEC'} || 'enabled'; |
16 |
+ my $access = $properties{'PublicAccess'} || 'none'; |
+ my $access = $properties{'PublicAccess'} || 'none'; |
17 |
+ $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'; |
18 |
+ next if $access eq 'none'; |
+ next if $access eq 'none'; |
39 |
+ $OUT .= " <FilesMatch \\.php\$>\n"; |
+ $OUT .= " <FilesMatch \\.php\$>\n"; |
40 |
+ $OUT .= " #disabling php\n"; |
+ $OUT .= " #disabling php\n"; |
41 |
+ $OUT .= " SetHandler !\n"; # could use also SetHandler none |
+ $OUT .= " SetHandler !\n"; # could use also SetHandler none |
42 |
+ $OUT .= " deny from all\n" if ( $properties{'ModDAVhidephp'} || 'enabled' ) eq 'enabled'; |
+ $OUT .= " deny from all\n" if ( $properties{'ModDavHidephp'} || 'enabled' ) eq 'enabled'; |
43 |
+ $OUT .= " </FilesMatch>\n"; |
+ $OUT .= " </FilesMatch>\n"; |
44 |
+ $OUT .= " Options -ExecCGI\n"; |
+ $OUT .= " Options -ExecCGI\n"; |
45 |
+ $OUT .= " RemoveHandler .cgi .php .php3 .php4 .php5 .phtml .pl .py .pyc .pyo\n"; |
+ $OUT .= " RemoveHandler .cgi .php .php3 .php4 .php5 .phtml .pl .py .pyc .pyo\n"; |
101 |
+ |
+ |
102 |
+ # bug with httpd-2.4 fixed in httpd-2.5 only see https://bz.apache.org/bugzilla/show_bug.cgi?id=54914 PROPFIND will fail |
+ # bug with httpd-2.4 fixed in httpd-2.5 only see https://bz.apache.org/bugzilla/show_bug.cgi?id=54914 PROPFIND will fail |
103 |
+ $OUT .= " #because of bug https://bz.apache.org/bugzilla/show_bug.cgi?id=54914 in httpd 2.4 DirectoryIndex disabled is needed for webdav to work\n"; |
+ $OUT .= " #because of bug https://bz.apache.org/bugzilla/show_bug.cgi?id=54914 in httpd 2.4 DirectoryIndex disabled is needed for webdav to work\n"; |
104 |
+ $OUT .= " DirectoryIndex disabled\n\n" unless ( ($properties{'DavNoDirectoryIndex'}||"enabled" ) eq "disabled"); |
+ $OUT .= " DirectoryIndex disabled\n\n" unless ( ($properties{'ModDavNoDirectoryIndex'}||"enabled" ) eq "disabled"); |
105 |
+ $OUT .= " #DirectoryIndex disabled : DavNoDirectoryIndex has been defined to force DirectoryIndex \n\n" if ( ($properties{'DavNoDirectoryIndex'}||"enabled" ) eq "disabled"); |
+ $OUT .= " #DirectoryIndex disabled : DavNoDirectoryIndex has been defined to force DirectoryIndex \n\n" if ( ($properties{'ModDavNoDirectoryIndex'}||"enabled" ) eq "disabled"); |
106 |
+ |
+ |
107 |
+ $OUT .= " order deny,allow\n"; |
+ $OUT .= " order deny,allow\n"; |
108 |
+ $OUT .= " deny from all\n"; |
+ $OUT .= " deny from all\n"; |
200 |
+ my $accessMode = $properties{'UserAccess'} || 'wr-admin-rd-group'; |
+ my $accessMode = $properties{'UserAccess'} || 'wr-admin-rd-group'; |
201 |
+ my $access = $properties{'PublicAccess'} || 'none'; |
+ my $access = $properties{'PublicAccess'} || 'none'; |
202 |
+ my $ispassibay = $access =~ /-pw/; |
+ my $ispassibay = $access =~ /-pw/; |
203 |
+ my $Anonymous = $properties{'ModDavAnonymousRead'} || "enabled"; |
+ my $Anonymous = $properties{'ModDavAnonymousRead'} || "disabled"; |
204 |
+ my $MEMBERS = getMembers( $key, $iBayGroup); |
+ my $MEMBERS = getMembers( $key, $iBayGroup); |
205 |
+ my $REQUIRE = ""; |
+ my $REQUIRE = ""; |
206 |
+ if ($mode eq "read") |
+ if ($mode eq "read") |