Skip to content

Instantly share code, notes, and snippets.

@tricarte
Created June 7, 2022 09:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tricarte/559a7eeeeadf767623e856ef25847a15 to your computer and use it in GitHub Desktop.
Save tricarte/559a7eeeeadf767623e856ef25847a15 to your computer and use it in GitHub Desktop.
php-fpm config for nginx location block
# This file also includes fastcgi.conf file from nginx root
include snippets/fastcgi-php.conf;
# First chunk of the fastcgi response header (by default getconf PAGESIZE)
fastcgi_buffer_size 8k;
# With php-fpm (or other unix sockets):
# fastcgi_param PHP_ADMIN_VALUE open_basedir=$document_root;
fastcgi_pass unix:/run/php/php-fpm.sock;
# With php-cgi (or other tcp sockets):
# fastcgi_pass 127.0.0.1:9000;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment