Skip to content

Commit 002c4d6

Browse files
committed
Disable PHP per website.
1 parent 7b28dad commit 002c4d6

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

server/conf/vhost.conf.master

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,32 @@
4545
AddType text/html .shtml
4646
AddOutputFilter INCLUDES .shtml
4747
Options +Includes
48+
</tmpl_if>
49+
<tmpl_if name='php' op='==' value='no'>
50+
<Files ~ '.php$'>
51+
Order allow,deny
52+
Deny from all
53+
Allow from none
54+
</Files>
55+
<Files ~ '.php3$'>
56+
Order allow,deny
57+
Deny from all
58+
Allow from none
59+
</Files>
60+
<Files ~ '.php4$'>
61+
Order allow,deny
62+
Deny from all
63+
Allow from none
64+
</Files>
65+
<Files ~ '.php5$'>
66+
Order allow,deny
67+
Deny from all
68+
Allow from none
69+
</Files>
70+
<Files ~ '.phps'>
71+
Order deny,allow
72+
Allow from all
73+
</Files>
4874
</tmpl_if>
4975
</Directory>
5076

0 commit comments

Comments
 (0)