Skip to content

Instantly share code, notes, and snippets.

@sheanhoxie
Created August 7, 2016 16:35
Show Gist options
  • Save sheanhoxie/942301d406599ad71f9c4378ccbdc5c7 to your computer and use it in GitHub Desktop.
Save sheanhoxie/942301d406599ad71f9c4378ccbdc5c7 to your computer and use it in GitHub Desktop.
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
#NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
include fastcgi.conf;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass 127.0.0.1:9000;
fastcgi_intercept_errors on;
fastcgi_read_timeout 3000;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment