Skip to content

Instantly share code, notes, and snippets.

@pikami
Created February 28, 2017 19:54
Show Gist options
  • Save pikami/9a99ffd2972c4c93b69a756ad6f82c1c to your computer and use it in GitHub Desktop.
Save pikami/9a99ffd2972c4c93b69a756ad6f82c1c to your computer and use it in GitHub Desktop.
try_files $uri /index.php;
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
it tries to load the uri first, if it can't it uses index.php instead
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment