Skip to content

Instantly share code, notes, and snippets.

@donaldallen
Created January 15, 2014 22:56
Show Gist options
  • Save donaldallen/8446431 to your computer and use it in GitHub Desktop.
Save donaldallen/8446431 to your computer and use it in GitHub Desktop.
nginx config with hhvm
server {
listen 80;
root /var/www/mywebsite.ca/public;
index index.php index.html index.htm;
server_name www.mywebsite.ca mywebsite.ca;
location ~ \.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;
}
location / {
try_files $uri $uri/ index.php?q=$uri&$args;
}
location ~ /\.ht {
deny all;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment