diff --git a/lib/configfiles/gentoo.xml b/lib/configfiles/gentoo.xml
index db0f1b24..6f3deb08 100644
--- a/lib/configfiles/gentoo.xml
+++ b/lib/configfiles/gentoo.xml
@@ -68,8 +68,24 @@
- //service[@type='http']/daemon[@name='apache'][@version='2.2']
-
+ //service[@type='http']/general/commands
+
+ {{settings.phpfpm.enabled}}
+
+
+ FastCgiIpcDir
+
+
+ Require all granted
+ Require env REDIRECT_STATUS
+
+
+]]>
+
+
+
+
diff --git a/lib/configfiles/trusty.xml b/lib/configfiles/trusty.xml
index 7ba14f11..adb32a00 100644
--- a/lib/configfiles/trusty.xml
+++ b/lib/configfiles/trusty.xml
@@ -68,8 +68,24 @@
- //service[@type='http']/daemon[@name='apache'][@version='2.2']
-
+
+ //service[@type='http']/general/commands
+
+ {{settings.phpfpm.enabled}}
+
+
+ FastCgiIpcDir
+
+
+ Require all granted
+ Require env REDIRECT_STATUS
+
+
+]]>
+
+
+
diff --git a/lib/configfiles/wheezy.xml b/lib/configfiles/wheezy.xml
index 040f37fc..1a929fb7 100644
--- a/lib/configfiles/wheezy.xml
+++ b/lib/configfiles/wheezy.xml
@@ -68,8 +68,24 @@
- //service[@type='http']/daemon[@name='apache'][@version='2.2']
-
+
+ //service[@type='http']/general/commands
+
+ {{settings.phpfpm.enabled}}
+
+
+ FastCgiIpcDir
+
+
+ Require all granted
+ Require env REDIRECT_STATUS
+
+
+]]>
+
+
+