# main configuration file

# Application PID File
PidFile = /codeigniter/hhvm.pid

# Server settings
Server {
  FileSocket = /codeigniter/hhvm.sock
  Type = fastcgi
  SourceRoot = /codeigniter
  DefaultDocument = index.php
  GzipCompressionLevel = 0
  EnableKeepAlive = true
  AllowRunAsRoot = 1
}

# Disable logging completely
Log {
  UseLogFile = false
  UseSyslog = false
  Level = Error
  #File = /codeigniter/error.log
}

# Enable jit for production mode
Eval {
    Jit = true
    CheckSymLink = false
}

# Repo file
Repo {
  Central {
    Path = /codeigniter/.hhvm.bbhc
  }
}

# Setup basic rewrite
VirtualHost {
    * {
        Pattern = .*
        RewriteRules {
            * {
                pattern = ^(.*)$
                to = $1.php
                qsa = true
            }
        }
    }
}
