Skip to content

Commit 472bafb

Browse files
author
Till Brehm
committed
Implemented #4653 Add support for HHVM with apache mod_proxy_fcgi
1 parent 3b8c4a2 commit 472bafb

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
@@ -406,6 +406,32 @@
406406
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'}
407407
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
408408
</IfModule>
409+
<IfModule mod_proxy_fcgi.c>
410+
<Directory {tmpl_var name='document_root'}/cgi-bin>
411+
<tmpl_if name='apache_version' op='>' value='2.2' format='version'>
412+
Require all granted
413+
<tmpl_else>
414+
Order allow,deny
415+
Allow from all
416+
</tmpl_if>
417+
</Directory>
418+
<Directory {tmpl_var name='web_document_root'}>
419+
<FilesMatch "\.php[345]?$">
420+
SetHandler "proxy:unix:/var/run/hhvm/hhvm.<tmpl_var name='system_user'>.sock|fcgi://localhost"
421+
</FilesMatch>
422+
<FilesMatch "\.hh$">
423+
SetHandler "proxy:unix:/var/run/hhvm/hhvm.<tmpl_var name='system_user'>.sock|fcgi://localhost"
424+
</FilesMatch>
425+
</Directory>
426+
<Directory {tmpl_var name='web_document_root_www'}>
427+
<FilesMatch "\.php[345]?$">
428+
SetHandler "proxy:unix:/var/run/hhvm/hhvm.<tmpl_var name='system_user'>.sock|fcgi://localhost"
429+
</FilesMatch>
430+
<FilesMatch "\.hh$">
431+
SetHandler "proxy:unix:/var/run/hhvm/hhvm.<tmpl_var name='system_user'>.sock|fcgi://localhost"
432+
</FilesMatch>
433+
</Directory>
434+
</IfModule>
409435
</tmpl_if>
410436

411437
<tmpl_if name="rewrite_enabled">

0 commit comments

Comments
 (0)