Skip to content

Commit 44fe3b5

Browse files
author
Michel Käser
committed
ProxyPassMatch is only possible if running PHP-FPM over TCP
1 parent a523371 commit 44fe3b5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

server/conf/vhost.conf.master

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -349,14 +349,14 @@
349349
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'}
350350
<tmpl_if name='use_tcp'>
351351
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
352+
<IfModule mod_proxy_fcgi.c>
353+
ProxyPassMatch ^/(.*\.php[345]?(/.*)?)$ fcgi://127.0.0.1:<tmpl_var name='fpm_port'><tmpl_var name='web_document_root'>/$1
354+
</IfModule>
352355
</tmpl_if>
353356
<tmpl_if name='use_socket'>
354357
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
355358
</tmpl_if>
356359
</IfModule>
357-
<IfModule mod_proxy_fcgi.c>
358-
ProxyPassMatch ^/(.*\.php[345]?(/.*)?)$ fcgi://127.0.0.1:<tmpl_var name='fpm_port'><tmpl_var name='web_document_root'>/$1
359-
</IfModule>
360360
</tmpl_if>
361361

362362
<tmpl_if name='php' op='==' value='hhvm'>

0 commit comments

Comments
 (0)