diff -urN smeserver-roundcube-1.2.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/92roundcube smeserver-roundcube-1.2/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/92roundcube --- smeserver-roundcube-1.2.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/92roundcube 2022-07-22 22:29:59.137742906 +0300 +++ smeserver-roundcube-1.2/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/92roundcube 2022-07-22 22:34:58.294244550 +0300 @@ -4,7 +4,7 @@ unless $status eq 'enabled'; $OUT = ""; - my $allow = 'all'; + my $allow = 'all granted'; my $pass = '0'; my $satisfy = 'all'; my $name = $roundcube{'Name'} || 'RoundCube IMAP Client'; @@ -19,31 +19,31 @@ } elsif ($roundcube{'PublicAccess'} eq 'local') { - $allow = $localAccess; + $allow = "ip $localAccess"; $pass = 0; $satisfy = 'all'; } elsif ($roundcube{'PublicAccess'} eq 'local-pw') { - $allow = $localAccess; + $allow = "ip $localAccess"; $pass = 1; $satisfy = 'all'; } elsif ($roundcube{'PublicAccess'} eq 'global') { - $allow = 'all'; + $allow = 'all granted'; $pass = 0; $satisfy = 'all'; } elsif ($roundcube{'PublicAccess'} eq 'global-pw') { - $allow = 'all'; + $allow = 'all granted'; $pass = 1; $satisfy = 'all'; } elsif ($roundcube{'PublicAccess'} eq 'global-pw-remote') { - $allow = $localAccess; + $allow = "ip $localAccess"; $pass = 1; $satisfy = 'any'; } @@ -63,9 +63,7 @@ $OUT .= "\n"; $OUT .= "\n"; - $OUT .= " order deny,allow\n"; - $OUT .= " deny from all\n"; - $OUT .= " allow from $allow\n"; + $OUT .= " Require $allow\n"; if ($pass) { @@ -86,8 +84,7 @@ $OUT .= qq ( - Order Deny,Allow - Deny from All + Require all denied );