I have Apache 2.4 with PHP 5.5 without using php_mod, but with PHP-FPM and mod_proxy_fcgi, so I added the following to vhost:
ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:7000/home/var/www/site/$1
This worked well, but when I had problems with timeouts, I added the following code to fix this problem in the vhost file:
<Proxy fcgi://127.0.0.1:7000> ProxySet timeout=3600 </Proxy> ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:7000/home/var/www/site/$1
However, I would like to add this timeout only to the administration panel of the www.site.com/admin/xxx website. I tried to add a location tag as shown below, but it did not work (Apache does not work when restarting).
<LocationMatch ^/admin/.*\.php(/.*)?$> <Proxy fcgi://127.0.0.1:7000> ProxySet timeout=3600 </Proxy> </LocationMatch > ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:7000/home/var/www/site/$1
First, is this possible? Then what will be the correct syntax?
Thanks so much for your time.
source share