Skip to content

Commit a5eace5

Browse files
author
Till Brehm
committed
Merge branch 'gsubiron-develop-patch-67688' into 'develop'
Allows Apache2 + PHP-FPM to interpret PHP files in /var/www/example.com/web, #6335 Closes #6335 See merge request ispconfig/ispconfig3!1603
2 parents fa03920 + b42d26f commit a5eace5

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

server/conf/vhost.conf.master

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,13 @@
408408
</tmpl_if>
409409
<tmpl_if name='use_tcp'>
410410
#ProxyPassMatch ^/(.*\.php[345]?(/.*)?)$ fcgi://127.0.0.1:<tmpl_var name='fpm_port'><tmpl_var name='web_document_root'>/$1
411+
<Directory {tmpl_var name='web_document_root_www'}>
412+
<FilesMatch "\.php[345]?$">
413+
<If "-f '%{REQUEST_FILENAME}'">
414+
SetHandler "proxy:fcgi://127.0.0.1:<tmpl_var name='fpm_port'>"
415+
</If>
416+
</FilesMatch>
417+
</Directory>
411418
<Directory {tmpl_var name='web_document_root'}>
412419
<FilesMatch "\.php[345]?$">
413420
<If "-f '%{REQUEST_FILENAME}'">
@@ -418,6 +425,13 @@
418425
</tmpl_if>
419426
<tmpl_if name='use_socket'>
420427
#ProxyPassMatch ^/(.*\.php[345]?(/.*)?)$ unix://<tmpl_var name='fpm_socket'>|fcgi://localhost/<tmpl_var name='web_document_root'>/$1
428+
<Directory {tmpl_var name='web_document_root_www'}>
429+
<FilesMatch "\.php[345]?$">
430+
<If "-f '%{REQUEST_FILENAME}'">
431+
SetHandler "proxy:unix:<tmpl_var name='fpm_socket'>|fcgi://localhost"
432+
</If>
433+
</FilesMatch>
434+
</Directory>
421435
<Directory {tmpl_var name='web_document_root'}>
422436
<FilesMatch "\.php[345]?$">
423437
<If "-f '%{REQUEST_FILENAME}'">

0 commit comments

Comments
 (0)