Skip to content

Instantly share code, notes, and snippets.

@kittinan
Created February 7, 2015 08:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kittinan/87f410004df45b6d0573 to your computer and use it in GitHub Desktop.
Save kittinan/87f410004df45b6d0573 to your computer and use it in GitHub Desktop.
nginx virtualhost file for hhvm
server {
listen 80;
root /home/null/code/hhvm;
index index.php index.html index.htm;
server_name hhvm.localdomain;
access_log /var/log/nginx/hhvm.localdomain.com_access.log;
error_log /var/log/nginx/hhvm.localdomain.com_error.log;
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ \.(hh|php)$ {
fastcgi_keep_conn on;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment