You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Jason Brooks <ja...@eroi.com> on 2016/11/10 00:17:49 UTC
[users@httpd] looking for a more generic ProxyPassMatch line to run php-fpm
Hello,
I am running ubuntu 16.04 lts server with apache 2.4 running php-fpm via mod_proxy_fcgi.
I really should say I am “experimenting”.
In my main document root (/var/www/html) I have the following ProxyPassMatch line:
ProxyPassMatch ^/(.*\.php(/.*)?)$ "fcgi://localhost:9000/var/www/html/$1/ enablereuse=on
This works: I am able to run php scripts just fine in the /var/www/html directory.
To run phpmyadmin, I needed the following ProxyPassMatch line:
ProxyPassMatch ^/phpmyadmin/(.*\.php(/.*)?)$ "fcgi://localhost:9000/usr/share/phpmyadmin/$1/ enablereuse=on
Again this works.
I am interested in some sort of site-wide (or at least virtualhost by virtualhost) ProxyPassMatch line such as:
ProxyPassMatch ^(.*\.php)? “fcgi://localhost:9000/%{DOCUMENT_ROOT}%/$1/ enablereuse=on
Is this possible? Am I going about this the wrong way?
Thank you for your time!
—jason
Jason Brooks Systems Administrator
eROI Performance is Art.
m: 505 nw couch #300 w: eroi.com <http://eroi.com/>
t: 503.290.3105 f: 503.228.4249
fb: fb.com/eROI <http://www.facebook.com/eROI>