Magento with apache httpd 2.4 and php-fpm

After struggling for several hours our being unable to access admin section of our Magento installation when using apache httpd 2.4 configured with php-fpm, we finally found the problem.

Coming from here, we used incorrect ProxyPassMatch, specifically:

1
ProxyPassMatch ^/(.*\.php)$ fcgi://127.0.0.1:9000/var/www/$1

instead of

1
ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000/var/www/$1

Using the 2nd option solved all problems with Magento admin section access.