summaryrefslogtreecommitdiffstats
path: root/tests/travis/travis-ci-apache-hhvm.conf
blob: dbfbfae2c8824fc29bbd1b482b272e1e13115aba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<VirtualHost *:80>

  DocumentRoot %TRAVIS_BUILD_DIR%

  <Directory "%TRAVIS_BUILD_DIR%">
    Options FollowSymLinks MultiViews ExecCGI
    AllowOverride All
    Order deny,allow
    Allow from all
  </Directory>

  # Configure Apache for HHVM FastCGI.
  # See https://github.com/facebook/hhvm/wiki/fastcgi.
  <IfModule mod_fastcgi.c>
      <FilesMatch \.php$>
          SetHandler hhvm-php-extension
      </FilesMatch>

      Alias /hhvm /hhvm
      Action hhvm-php-extension /hhvm virtual

      FastCgiExternalServer /hhvm -host 127.0.0.1:9000 -pass-header Authorization -idle-timeout 300
  </IfModule>

</VirtualHost>