Skip to content

Instantly share code, notes, and snippets.

@tektoh
Last active August 29, 2015 14:10
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save tektoh/39d3ae49344a56b962b9 to your computer and use it in GitHub Desktop.
Save tektoh/39d3ae49344a56b962b9 to your computer and use it in GitHub Desktop.
Configure: Nginx+HHVM+Concrete5
; php options
session.save_handler = files
session.save_path = /var/lib/php5
session.gc_maxlifetime = 1440
short_open_tag = On
expose_php = Off
; hhvm specific
hhvm.log.level = Warning
hhvm.log.always_log_unhandled_exceptions = true
hhvm.log.runtime_error_reporting_level = 8191
hhvm.mysql.typed_results = false
server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
root /var/www/concrete5-5.7.0/web;
index index.php index.html;
server_name localhost;
server_tokens off;
location / {
if (-f $request_filename) {
expires 14d;
break;
}
if (!-e $request_filename) {
rewrite ^(.+)$ /index.php/$1 last;
}
}
location ~ ^(.+\.php)(.*)$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
include fastcgi_params;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment