looking for a more generic ProxyPassMatch line to run php-fpm

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 BrooksSystems Administrator
eROIPerformance is Art.
 
m:505 nw couch #300w:eroi.com
t:503.290.3105f:503.228.4249


fb:fb.com/eROI









[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux