summaryrefslogtreecommitdiffstats
path: root/server/etc
diff options
context:
space:
mode:
authorRamón M. Gómez <ramongomez@us.es>2018-10-04 11:57:06 +0200
committerRamón M. Gómez <ramongomez@us.es>2018-10-04 11:57:06 +0200
commit9215580935651b48edc831a2f18adf52da9b3750 (patch)
tree5fc25c570b0fa20070008fb35b3c11dde36d1cf2 /server/etc
parentea01a0db9f0d19f6f87a4c26de3679e5cc634e3f (diff)
#784: Using PHP-FPM instead of Mod-PHP to improve Apache performance.
Diffstat (limited to 'server/etc')
-rw-r--r--server/etc/apache.conf.tmpl7
1 files changed, 7 insertions, 0 deletions
diff --git a/server/etc/apache.conf.tmpl b/server/etc/apache.conf.tmpl
index ab49503d..d637c2fe 100644
--- a/server/etc/apache.conf.tmpl
+++ b/server/etc/apache.conf.tmpl
@@ -2,6 +2,13 @@
Alias /opengnsys CONSOLEDIR
+# PHP-FPM configuration
+<IfModule proxy_fcgi_module>
+ <FilesMatch ".+\.ph(p[3457]?|t|tml)$">
+ SetHandler "proxy:unix:SOCKFILE|fcgi://localhost"
+ </FilesMatch>
+</IfModule>
+
RewriteEngine On
# Redirect HTTP to HTTPS and default configuration.