Re: [PHP] PHP-FPM with Apache 2.4, forward all request for all virtual host
[email protected] (Matijn Woudt)
| Newsgroups | php.general |
|---|---|
| Message-ID | <CAC_gtuNpwj_PSjijsM0srm_2uG3r5sMPMxz0ACaOAPF_OQ9+Og@mail.gmail.com> |
On Thu, Apr 4, 2013 at 10:27 PM, Jose Nobile <[email protected]> wrote: > How? > > If is required set the website path to PHP-FPM, from Apache Wiki: > > ProxyPassMatch ^/(.*\.php)$ fcgi://127.0.0.1:9000/var/www/$1 > > > > > Saludos, > José Nobile > > > with mod_proxy_fcgi you indeed need this line in each vhost. If you don't want this, then you need to use something else, like mod_fastcgi or mod_cgid? mod_cgid should work out of the box, with mod_fastci you might to compile this version for Apache 2.4: https://github.com/ByteInternet/libapache-mod-fastcgi - Matijn