HHVM config for Laravel

Submitted by msurguy - 10 years ago

Laravel passes 100% test coverage on Hip Hop Virtual Machine (HHVM) so you might want to try using it to host your next Laravel application. The advantage of HHVM is an increase in speed of executing your PHP scripts and thus boosting your application. This config was provided by Taylor Otwell.

Server {
  Port = 8080
  SourceRoot = /home/taylor/Test/public/
}
VirtualHost {
 * {
   Pattern = .*
   RewriteRules {
      * {
        pattern = .?
    # app bootstrap
        to = index.php
        # append the original query string
        qsa = true
      }
   }
 }
}
StaticFile {
  Extensions {
    css = text/css
    gif = image/gif
    html = text/html
    jpe = image/jpeg
    jpeg = image/jpeg
    jpg = image/jpeg
    png = image/png
    tif = image/tiff
    tiff = image/tiff
    txt = text/plain
  }
}