Skip to content

Commit daf71a3

Browse files
committed
Fixed: FS#1330 - Bug in ssl part of vhost config when suphp is used.
1 parent 01d133c commit daf71a3

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

server/conf/vhost.conf.master

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,10 @@
305305
# suexec enabled
306306
SuexecUserGroup <tmpl_var name='system_user'> <tmpl_var name='system_group'>
307307
</tmpl_if>
308+
# Clear PHP settings of this website
309+
<FilesMatch "\.ph(p3?|tml)$">
310+
SetHandler None
311+
</FilesMatch>
308312
<tmpl_if name='php' op='==' value='mod'>
309313
# mod_php enabled
310314
AddType application/x-httpd-php .php .php3 .php4 .php5
@@ -317,13 +321,18 @@
317321
</tmpl_if>
318322
</tmpl_if>
319323
<tmpl_if name='php' op='==' value='suphp'>
320-
suPHP_Engine on
321-
# suPHP_UserGroup <tmpl_var name='system_user'> <tmpl_var name='system_group'>
324+
# suphp enabled
325+
<Directory {tmpl_var name='web_document_root'}>
326+
<IfModule mod_suphp.c>
327+
suPHP_Engine on
328+
# suPHP_UserGroup <tmpl_var name='system_user'> <tmpl_var name='system_group'>
322329
<tmpl_if name='has_custom_php_ini'>
323330
suPHP_ConfigPath <tmpl_var name='custom_php_ini_dir'>
324331
</tmpl_if>
325-
AddHandler x-httpd-suphp .php .php3 .php4 .php5
326-
suPHP_AddHandler x-httpd-suphp
332+
AddHandler x-httpd-suphp .php .php3 .php4 .php5
333+
suPHP_AddHandler x-httpd-suphp
334+
</IfModule>
335+
</Directory>
327336
</tmpl_if>
328337
<tmpl_if name='php' op='==' value='cgi'>
329338
# php as cgi enabled

0 commit comments

Comments
 (0)