apache2 with php-fpm and mod_proxy_fcgi

asked 2018-08-26 14:01:02 -0600

clgies gravatar image

I want to use the puppetlabs/apache module to define a fastcgi proxy passing php requests to php-fpm.

Within a Apache2-Vhost definition this configuration looks like:

<IfModule mod_proxy_fcgi.c>
    <Proxy "unix:/var/run/php/php7.0-fpm.sock|fcgi://php7.0-fpm">
            ProxySet disablereuse=off
    </Proxy>
    <FilesMatch ".+\.php$">
            SetHandler proxy:fcgi://php7.0-fpm
    </FilesMatch>
</IfModule>

How can I implement this configuration with the Puppet module? Many thanks in advance

edit retag flag offensive close merge delete