Created
June 7, 2022 09:28
-
-
Save tricarte/559a7eeeeadf767623e856ef25847a15 to your computer and use it in GitHub Desktop.
php-fpm config for nginx location block
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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