Nextcloud 20.0.6 after move to other server no dirs and user with spaces working

[details=“Support intro”]

After move my nc to other server i can’t access user with spaces and groups with spaces. Any suggestions?

Exception: The requested uri(/index.php/avatar/K%20A/16) cannot be processed by the script ‘/index.php/avatar/K A/16’)

  1. /var/www/html/lib/base.php - line 951:OC\AppFramework\Http\Request->getRawPathInfo()
  2. /var/www/html/index.php - line 37:OC::handleRequest()

if i would like access a user group with spaces

“app”:“no app in context”,“method”:“GET”,“url”:"/ocs/v2.php/cloud/groups/B%2520B/users/details?offset=0&limit=25&search=",“message”:{“Exception”:“Exception”,“Message”:“The requested uri(/ocs/v2.php/cloud/groups/B%2520B/users/details) cannot be processed by the script ‘/ocs/v2.php/cloud/groups/B%20B/users/details’)”,“Code”:0,“Trace”:[{“file”:"/var/www/html/lib/private/AppFramework/Http/Request.php",“line”:809,“function”:“getRawPathInfo”,“class”:“OC\AppFramework\Http\Request”,“type”:"->"},{“file”:"/var/www/html/apps/notifications/lib/AppInfo/Application.php",“line”:69,“function”:“getPathInfo”,“class”:“OC\AppFramework\Http\Request”,“type”:"->"},{“file”:"/var/www/html/lib/private/AppFramework/Bootstrap/FunctionInjector.php",“line”:68,“function”:“registerAppAndNotifier”,“class”:“OCA\Notifications\AppInfo\Application”,“type”:"->"},{“file”:"/var/www/html/lib/private/AppFramework/Bootstrap/BootContext.php",“line”:52,“function”:“injectFn”,“class”:“OC\AppFramework\Bootstrap\FunctionInjector”,“type”:"->"},{“file”:"/var/www/html/apps/notifications/lib/AppInfo/Application.php",“line”:57,“function”:“injectFn”,“class”:“OC\AppFramework\Bootstrap\BootContext”,“type”:"->"},{“file”:"/var/www/html/lib/private/AppFramework/Bootstrap/Coordinator.php",“line”:168,“function”:“boot”,“class”:“OCA\Notifications\AppInfo\Application”,“type”:"->"},{“file”:"/var/www/html/lib/private/legacy/OC_App.php",“line”:191,“function”:“bootApp”,“class”:“OC\AppFramework\Bootstrap\Coordinator”,“type”:"->"},{“file”:"/var/www/html/lib/private/legacy/OC_App.php",“line”:131,“function”:“loadApp”,“class”:“OC_App”,“type”:"::"},{“file”:"/var/www/html/ocs/v1.php",“line”:56,“function”:“loadApps”,“class”:“OC_App”,“type”:"::"},{“file”:"/var/www/html/ocs/v2.php",“line”:24,“args”:["/var/www/html/ocs/v1.php"],“function”:“require_once”}],“File”:"/var/www/html/lib/private/AppFramework/Http/Request.php",“Line”:783,“CustomMessage”:“Could not boot notificationsThe requested uri(/ocs/v2.php/cloud/groups/B%2520B/users/details) cannot be processed by the script ‘/ocs/v2.php/cloud/groups/B%20B/users/details’)”},“userAgent”:“Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36”,“version”:“20.0.6.1”}

after change in apache2 config from:
ProxyPassMatch “^/(..php(/.)?)$” “unix:/run/php/nextcloud_php7.4-fpm.sock|fcgi://localhost/var/www/html”

to:

    <FilesMatch \.php$>
            SetHandler "proxy:fcgi://localhost:9401/"
    </FilesMatch>

and Change php-fpm to listen port
working . Crazy