Skip to content
This repository was archived by the owner on Nov 16, 2022. It is now read-only.

Commit e943f72

Browse files
author
Michel Käser
committed
can only be used with PHP-FPM over TCP
1 parent 670511e commit e943f72

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

usr/local/ispconfig/server/conf-custom/vhost.conf.master

+3-3
Original file line numberDiff line numberDiff line change
@@ -385,14 +385,14 @@
385385
Alias /php5-fcgi {tmpl_var name='document_root'}/cgi-bin/php5-fcgi-{tmpl_var name='ip_address'}-{tmpl_var name='port'}-{tmpl_var name='domain'}
386386
<tmpl_if name='use_tcp'>
387387
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 -host 127.0.0.1:<tmpl_var name='fpm_port'> -pass-header Authorization
388+
<IfModule mod_proxy_fcgi.c>
389+
ProxyPassMatch ^/(.*\.php[345]?(/.*)?)$ fcgi://127.0.0.1:<tmpl_var name='fpm_port'><tmpl_var name='web_document_root'>/$1
390+
</IfModule>
388391
</tmpl_if>
389392
<tmpl_if name='use_socket'>
390393
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 <tmpl_var name='fpm_socket'> -pass-header Authorization
391394
</tmpl_if>
392395
</IfModule>
393-
<IfModule mod_proxy_fcgi.c>
394-
ProxyPassMatch ^/(.*\.php[345]?(/.*)?)$ fcgi://127.0.0.1:<tmpl_var name='fpm_port'><tmpl_var name='web_document_root'>/$1
395-
</IfModule>
396396
</tmpl_if>
397397

398398
# add support for apache mpm_itk

0 commit comments

Comments
 (0)