From 002c4d664f955a416f70d106563e98e2c43a23c6 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Wed, 4 Mar 2009 14:39:26 +0000
Subject: [PATCH] Disable PHP per website.

---
 server/conf/vhost.conf.master | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/server/conf/vhost.conf.master b/server/conf/vhost.conf.master
index 03f6bc1b4..b442607d0 100644
--- a/server/conf/vhost.conf.master
+++ b/server/conf/vhost.conf.master
@@ -45,6 +45,32 @@
         AddType text/html .shtml
         AddOutputFilter INCLUDES .shtml
         Options +Includes
+</tmpl_if>
+<tmpl_if name='php' op='==' value='no'>
+        <Files ~ '.php$'>
+            Order allow,deny
+            Deny from all
+            Allow from none
+        </Files>
+        <Files ~ '.php3$'>
+            Order allow,deny
+            Deny from all
+            Allow from none
+        </Files>
+        <Files ~ '.php4$'>
+            Order allow,deny
+            Deny from all
+            Allow from none
+        </Files>
+        <Files ~ '.php5$'>
+            Order allow,deny
+            Deny from all
+            Allow from none
+        </Files>
+        <Files ~ '.phps'>
+            Order deny,allow
+            Allow from all
+        </Files>
 </tmpl_if>
     </Directory>
 
-- 
GitLab