apache 2.4 php-fpm proxypassmatch for pretty urls
- by tubaguy50035
I have a URL like http://newsymfony.dev/app_dev.php/_profiler/5080653d965eb.
I would like to send this script to PHP-FPM. I currently have this as my vhost:
VirtualHost *:80>
ServerName newsymfony.dev
DocumentRoot /home/COMPANY/nwalke/www/newsymfony.dev/web/
ErrorLog /var/log/apache2/error_log
LogLevel info
CustomLog /var/log/apache2/access_log combined
<Directory /home/COMPANY/nwalke/www/newsymfony.dev/web/>
AllowOverride All
Require all granted
DirectoryIndex app.php
</Directory>
ProxyPassMatch ^/(.*\.php)$ fcgi://127.0.0.1:9003/home/COMPANY/nwalke/www/newsymfony.dev/web/$1
</VirtualHost>
If I browse to app_dev.php it works just fine. But if I do app_dev.php/_profiler/5080653d965eb I get a 404 and the request never gets sent to FPM. How can I alter my ProxyPassMatch to pass anything with .php in the URL?
I'm trying to do this with Symfony, but I'm pretty sure it applies to everything.