Skip to content

Instantly share code, notes, and snippets.

@tsphethean
Created December 26, 2013 21:20
Show Gist options
  • Save tsphethean/8138831 to your computer and use it in GitHub Desktop.
Save tsphethean/8138831 to your computer and use it in GitHub Desktop.
HHVM Drupal configuration
Server {
Port = 8000
SourceRoot = /vagrant/public/drupal.vbox.local/www/
}
Eval {
Jit = true
}
Log {
Level = Error
UseLogFile = true
File = /var/log/hhvm/error.log
Access {
* {
File = /var/log/hhvm/access.log
Format = %h %l %u %t \"%r\" %>s %b
}
}
}
VirtualHost {
* {
Pattern = .*
ServerVariables {
PHP_SELF = /index.php
SCRIPT_NAME = /index.php
}
RewriteRules {
index {
pattern = ^(.*)$
to = index.php/$1
qsa = true
}
}
}
}
StaticFile {
FilesMatch {
* {
pattern = .*\.(dll|exe)
headers {
* = Content-Disposition: attachment
}
}
}
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
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment