Skip to content

Commit 936e79d

Browse files
committed
added directory directive to ssl vhost part.
1 parent 4c7fd5c commit 936e79d

File tree

1 file changed

+80
-1
lines changed

1 file changed

+80
-1
lines changed

server/conf/vhost.conf.master

Lines changed: 80 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,85 @@
212212
<tmpl_if name='has_bundle_cert'>
213213
SSLCACertificateFile <tmpl_var name='document_root'>/ssl/<tmpl_var name='domain'>.bundle
214214
</tmpl_if>
215+
216+
<Directory {tmpl_var name='web_document_root_www'}>
217+
Options FollowSymLinks
218+
AllowOverride Indexes AuthConfig Limit FileInfo
219+
Order allow,deny
220+
Allow from all
221+
<tmpl_if name='ssi' op='==' value='y'>
222+
223+
# ssi enabled
224+
AddType text/html .shtml
225+
AddOutputFilter INCLUDES .shtml
226+
Options +Includes
227+
</tmpl_if>
228+
<tmpl_if name='php' op='==' value='no'>
229+
<Files ~ '.php$'>
230+
Order allow,deny
231+
Deny from all
232+
Allow from none
233+
</Files>
234+
<Files ~ '.php3$'>
235+
Order allow,deny
236+
Deny from all
237+
Allow from none
238+
</Files>
239+
<Files ~ '.php4$'>
240+
Order allow,deny
241+
Deny from all
242+
Allow from none
243+
</Files>
244+
<Files ~ '.php5$'>
245+
Order allow,deny
246+
Deny from all
247+
Allow from none
248+
</Files>
249+
<Files ~ '.phps'>
250+
Order deny,allow
251+
Allow from all
252+
</Files>
253+
</tmpl_if>
254+
</Directory>
255+
<Directory {tmpl_var name='web_document_root'}>
256+
Options FollowSymLinks
257+
AllowOverride Indexes AuthConfig Limit FileInfo
258+
Order allow,deny
259+
Allow from all
260+
<tmpl_if name='ssi' op='==' value='y'>
261+
262+
# ssi enabled
263+
AddType text/html .shtml
264+
AddOutputFilter INCLUDES .shtml
265+
Options +Includes
266+
</tmpl_if>
267+
<tmpl_if name='php' op='==' value='no'>
268+
<Files ~ '.php$'>
269+
Order allow,deny
270+
Deny from all
271+
Allow from none
272+
</Files>
273+
<Files ~ '.php3$'>
274+
Order allow,deny
275+
Deny from all
276+
Allow from none
277+
</Files>
278+
<Files ~ '.php4$'>
279+
Order allow,deny
280+
Deny from all
281+
Allow from none
282+
</Files>
283+
<Files ~ '.php5$'>
284+
Order allow,deny
285+
Deny from all
286+
Allow from none
287+
</Files>
288+
<Files ~ '.phps'>
289+
Order deny,allow
290+
Allow from all
291+
</Files>
292+
</tmpl_if>
293+
</Directory>
215294

216295
<tmpl_if name='cgi'op='==' value='y'>
217296
# cgi enabled
@@ -239,7 +318,7 @@
239318
<tmpl_if name='php' op='==' value='suphp'>
240319
# suphp enabled
241320
suPHP_Engine on
242-
suPHP_UserGroup <tmpl_var name='system_user'> <tmpl_var name='system_group'>
321+
# suPHP_UserGroup <tmpl_var name='system_user'> <tmpl_var name='system_group'>
243322
AddHandler x-httpd-php .php .php3 .php4 .php5
244323
suPHP_AddHandler x-httpd-php
245324
</tmpl_if>

0 commit comments

Comments
 (0)