Skip to content

Commit 596a609

Browse files
author
Marius Cramer
committed
- changed hhvm handling to match stable branch (FilesMatch in Directory sections) - added changes from stable accordingly
1 parent 92bc7d7 commit 596a609

File tree

1 file changed

+34
-13
lines changed

1 file changed

+34
-13
lines changed

server/conf/vhost.conf.master

Lines changed: 34 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@
6161
</IfModule>
6262

6363
<Directory {tmpl_var name='web_document_root_www'}>
64+
# Clear PHP settings of this website
65+
<FilesMatch ".+\.ph(p[345]?|t|tml)$">
66+
SetHandler None
67+
</FilesMatch>
6468
Options +FollowSymLinks
6569
AllowOverride <tmpl_var name='allow_override'>
6670
<tmpl_if name='apache_version' op='>' value='2.2' format='version'>
@@ -89,6 +93,10 @@
8993
</tmpl_if>
9094
</Directory>
9195
<Directory {tmpl_var name='web_document_root'}>
96+
# Clear PHP settings of this website
97+
<FilesMatch ".+\.ph(p[345]?|t|tml)$">
98+
SetHandler None
99+
</FilesMatch>
92100
Options +FollowSymLinks
93101
AllowOverride <tmpl_var name='allow_override'>
94102
<tmpl_if name='apache_version' op='>' value='2.2' format='version'>
@@ -190,10 +198,6 @@
190198
SuexecUserGroup <tmpl_var name='system_user'> <tmpl_var name='system_group'>
191199
</IfModule>
192200
</tmpl_if>
193-
# Clear PHP settings of this website
194-
<FilesMatch ".+\.ph(p[345]?|t|tml)$">
195-
SetHandler None
196-
</FilesMatch>
197201
<tmpl_if name='php' op='==' value='mod'>
198202
# mod_php enabled
199203
AddType application/x-httpd-php .php .php3 .php4 .php5
@@ -308,9 +312,16 @@
308312
Allow from all
309313
</tmpl_if>
310314
</Directory>
311-
<FilesMatch "\.php[345]?$">
312-
SetHandler php5-fcgi
313-
</FilesMatch>
315+
<Directory {tmpl_var name='web_document_root_www'}>
316+
<FilesMatch "\.php[345]?$">
317+
SetHandler php5-fcgi
318+
</FilesMatch>
319+
</Directory>
320+
<Directory {tmpl_var name='web_document_root'}>
321+
<FilesMatch "\.php[345]?$">
322+
SetHandler php5-fcgi
323+
</FilesMatch>
324+
</Directory>
314325
Action php5-fcgi /php5-fcgi virtual
315326
Alias /php5-fcgi {tmpl_var name='document_root'}/cgi-bin/php5-fcgi-{tmpl_var name='ip_address'}-{tmpl_var name='port'}-{tmpl_var name='domain'}
316327
<tmpl_if name='use_tcp'>
@@ -332,12 +343,22 @@
332343
Allow from all
333344
</tmpl_if>
334345
</Directory>
335-
<FilesMatch "\.php[345]?$">
336-
SetHandler hhvm-fcgi
337-
</FilesMatch>
338-
<FilesMatch "\.hh$">
339-
SetHandler hhvm-fcgi
340-
</FilesMatch>
346+
<Directory {tmpl_var name='web_document_root_www'}>
347+
<FilesMatch "\.php[345]?$">
348+
SetHandler hhvm-fcgi
349+
</FilesMatch>
350+
<FilesMatch "\.hh$">
351+
SetHandler hhvm-fcgi
352+
</FilesMatch>
353+
</Directory>
354+
<Directory {tmpl_var name='web_document_root'}>
355+
<FilesMatch "\.php[345]?$">
356+
SetHandler hhvm-fcgi
357+
</FilesMatch>
358+
<FilesMatch "\.hh$">
359+
SetHandler hhvm-fcgi
360+
</FilesMatch>
361+
</Directory>
341362
Action hhvm-fcgi /hhvm-fcgi virtual
342363
Alias /hhvm-fcgi {tmpl_var name='document_root'}/cgi-bin/hhvm-fcgi-{tmpl_var name='ip_address'}-{tmpl_var name='port'}-{tmpl_var name='domain'}
343364
FastCgiExternalServer {tmpl_var name='document_root'}/cgi-bin/hhvm-fcgi-{tmpl_var name='ip_address'}-{tmpl_var name='port'}-{tmpl_var name='domain'} -idle-timeout 300 -socket /var/run/hhvm/hhvm.<tmpl_var name='system_user'>.sock -pass-header Authorization

0 commit comments

Comments
 (0)