Add 'php/phpxmlrpc/' from commit 'cd5dbb4a511e7a616a61187a5de1a611a9748cbd'
[plcapi.git] / php / phpxmlrpc / tests / ci / travis / apache_vhost_hhvm
1 # Configuration file for Apache running on Travis.
2 # HHVM setup in FCGI mode
3
4 <VirtualHost *:80>
5
6   DocumentRoot %TRAVIS_BUILD_DIR%
7
8   ErrorLog "%TRAVIS_BUILD_DIR%/apache_error.log"
9   CustomLog "%TRAVIS_BUILD_DIR%/apache_access.log" combined
10
11   <Directory "%TRAVIS_BUILD_DIR%">
12     Options FollowSymLinks MultiViews ExecCGI
13     AllowOverride All
14     Order deny,allow
15     Allow from all
16   </Directory>
17
18   # Configure Apache for HHVM FastCGI.
19   # See https://github.com/facebook/hhvm/wiki/fastcgi
20   <IfModule mod_fastcgi.c>
21     <FilesMatch \.php$>
22       SetHandler hhvm-php-extension
23     </FilesMatch>
24     Alias /hhvm /hhvm
25     Action hhvm-php-extension /hhvm virtual
26     FastCgiExternalServer /hhvm -host 127.0.0.1:9000 -pass-header Authorization -idle-timeout 300
27   </IfModule>
28
29 </VirtualHost>
30
31 <IfModule mod_ssl.c>
32
33 <VirtualHost _default_:443>
34
35   DocumentRoot %TRAVIS_BUILD_DIR%
36
37   ErrorLog "%TRAVIS_BUILD_DIR%/apache_error.log"
38   CustomLog "%TRAVIS_BUILD_DIR%/apache_access.log" combined
39
40   <Directory "%TRAVIS_BUILD_DIR%">
41     Options FollowSymLinks MultiViews ExecCGI
42     AllowOverride All
43     Order deny,allow
44     Allow from all
45   </Directory>
46
47   # Configure Apache for HHVM FastCGI.
48   # See https://github.com/facebook/hhvm/wiki/fastcgi
49   <IfModule mod_fastcgi.c>
50     <FilesMatch \.php$>
51       SetHandler hhvm-php-extension
52     </FilesMatch>
53     Alias /hhvm /hhvm
54     Action hhvm-php-extension /hhvm virtual
55     #FastCgiExternalServer /hhvm -host 127.0.0.1:9000 -pass-header Authorization -idle-timeout 300
56   </IfModule>
57
58   SSLEngine on
59   # This cert is bundled by default in Ubuntu
60   SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
61   SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
62
63   <FilesMatch "\.(cgi|shtml|phtml|php)$">
64     SSLOptions +StdEnvVars
65   </FilesMatch>
66
67   BrowserMatch "MSIE [2-6]" \
68   nokeepalive ssl-unclean-shutdown \
69   downgrade-1.0 force-response-1.0
70   BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown
71
72 </VirtualHost>
73
74 </IfModule>