|
|
|
@ -39,10 +39,16 @@ _EOF |
|
|
|
|
next if ($share->prop('DynamicContent' || 'disabled') ne 'enabled'); |
|
|
|
|
my $key = $share->key; |
|
|
|
|
my $ver = $share->prop('PHPVersion') || ''; |
|
|
|
|
my $socket = "php$ver-$key.sock"; |
|
|
|
|
my $custom = $share->prop('PHPCustomPool') || undef; |
|
|
|
|
if ($custom){ |
|
|
|
|
$ver = $p->get($custom)->prop('Version') || ''; |
|
|
|
|
$socket = "php$ver-$custom.sock"; |
|
|
|
|
} |
|
|
|
|
$OUT .=<<_EOF; |
|
|
|
|
Action php$key-fastcgi /php-cgi-bin/php$key-wrapper |
|
|
|
|
Alias /php-cgi-bin/php$key-wrapper /var/www/php-cgi-bin/php$key-wrapper |
|
|
|
|
FastCgiExternalServer /var/www/php-cgi-bin/php$key-wrapper -socket /var/run/php-fpm/php$ver-$key.sock -pass-header Authorization -idle-timeout 120 |
|
|
|
|
FastCgiExternalServer /var/www/php-cgi-bin/php$key-wrapper -socket /var/run/php-fpm/$socket -pass-header Authorization -idle-timeout 120 |
|
|
|
|
|
|
|
|
|
_EOF |
|
|
|
|
# Custom PHP pools |
|
|
|
|