diff --git a/server/conf/vhost.conf.master b/server/conf/vhost.conf.master index 96b34433843d4586553da08d142109050962451c..16e0d12160fe2d2e660e84341730ca4b6382169a 100644 --- a/server/conf/vhost.conf.master +++ b/server/conf/vhost.conf.master @@ -334,6 +334,9 @@ FastCgiExternalServer {tmpl_var name='document_root'}/cgi-bin/php5-fcgi-{tmpl_var name='ip_address'}-{tmpl_var name='port'}-{tmpl_var name='domain'} -idle-timeout 300 -socket -pass-header Authorization + + ProxyPassMatch ^/(.*\.php[345]?(/.*)?)$ fcgi://127.0.0.1:/$1 + diff --git a/server/plugins-available/apache2_plugin.inc.php b/server/plugins-available/apache2_plugin.inc.php index 142a916d000cf16e3bd95a5b3af40e4813d078a7..3c4ba3e77f227851be74d81c8c52b26e823f9079 100644 --- a/server/plugins-available/apache2_plugin.inc.php +++ b/server/plugins-available/apache2_plugin.inc.php @@ -1262,8 +1262,9 @@ class apache2_plugin { $pool_name = 'web'.$data['new']['domain_id']; $socket_dir = escapeshellcmd($web_config['php_fpm_socket_dir']); if(substr($socket_dir, -1) != '/') $socket_dir .= '/'; - - if($data['new']['php_fpm_use_socket'] == 'y'){ + + // User sockets, but not with apache 2.4 as socket support is buggy in that version + if($data['new']['php_fpm_use_socket'] == 'y' && $app->system->getapacheversion() < 2.4){ $use_tcp = 0; $use_socket = 1; } else {