Skip to content

Instantly share code, notes, and snippets.

@nurulimamnotes
Created September 8, 2015 20:16
Show Gist options
  • Save nurulimamnotes/9386df9cb06e57a83c95 to your computer and use it in GitHub Desktop.
Save nurulimamnotes/9386df9cb06e57a83c95 to your computer and use it in GitHub Desktop.
location ~ \.(hh|php)$ {
fastcgi_intercept_errors on;
error_page 500 501 502 503 = @fallback;
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_keep_conn on;
fastcgi_pass 127.0.0.1:9000;
# fastcgi_pass unix:/var/run/hhvm/hhvm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param SERVER_NAME $host;
include fastcgi_params;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment