Skip to content

Instantly share code, notes, and snippets.

@j-c-m
Created March 29, 2014 17:55
Show Gist options
  • Select an option

  • Save j-c-m/9859029 to your computer and use it in GitHub Desktop.

Select an option

Save j-c-m/9859029 to your computer and use it in GitHub Desktop.
Nginx PHP-FPM location block
location ~ \.php(/.*)?$ {
fastcgi_index index.php;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_buffers 32 4k;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
include fastcgi_params;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME $request_filename;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment