I found this discussion: https://lore.kernel.org/git/202408010015.4710fgtf018...@donotpassgo.dyslexicfish.net/
Yeah, I found cloning via git:// protocol worked, only cloning via https:// failed. The solution is to put this in the apache config for git-http-backend: SetEnv GIT_CONFIG_COUNT 1 SetEnv GIT_CONFIG_KEY_0 safe.directory SetEnv GIT_CONFIG_VALUE_0 * Johannes