Skip to content

Commit 3fbdb9b

Browse files
committed
changed vhost.conf.master
1 parent 2ace6e1 commit 3fbdb9b

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

server/conf/vhost.conf.master

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,45 @@
4646
AddOutputFilter INCLUDES .shtml
4747
Options +Includes
4848
</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>
74+
</tmpl_if>
75+
</Directory>
76+
<Directory {tmpl_var name='web_document_root'}>
77+
Options FollowSymLinks
78+
AllowOverride Indexes AuthConfig Limit FileInfo
79+
Order allow,deny
80+
Allow from all
81+
<tmpl_if name='ssi' op='==' value='y'>
82+
83+
# ssi enabled
84+
AddType text/html .shtml
85+
AddOutputFilter INCLUDES .shtml
86+
Options +Includes
87+
</tmpl_if>
4988
<tmpl_if name='php' op='==' value='no'>
5089
<Files ~ '.php$'>
5190
Order allow,deny

0 commit comments

Comments
 (0)