File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed
Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change 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">
You can’t perform that action at this time.
0 commit comments