Unable to access directories starting with a hash sign

Hello,

i have the same problem when i’m using:
ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://localhost:9003/var/www/owncloud/$1
I’m getting errors like:

[proxy_fcgi:error] [pid 8704] [client 93.209.104.xx:38672] Invalid status line from script ‘…’: 0

But disabling the ProxyPassMatch and creating a

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

does not fix the error for me… after that i’m getting the php source in browser…nothing is interpreted

I’m running a Nextcloud 11.0.7 beta on a:
Apache/2.4.7 (Ubuntu)
PHP 7.1.13-1+ubuntu14.04.1+deb.sury.org+1

mod mod_proxy_fcgi.so is loaded…

I’m pretty sure it’s something with my configuration…does anyone has an idea on whats going wrong?

Thank you!