Skip to content

Instantly share code, notes, and snippets.

@danstreeter
Created February 1, 2019 13:38
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 danstreeter/8cd5fcc4dc83390ba3471adf632c929b to your computer and use it in GitHub Desktop.
Save danstreeter/8cd5fcc4dc83390ba3471adf632c929b to your computer and use it in GitHub Desktop.
Nginx Config block for PHP-FPM Status and Ping page requests
location ~ ^/(status|ping)$ {
allow 127.0.0.1;
log_not_found off;
access_log off;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_pass php:9000;
# fastcgi_pass unix:/var/run/php7.2-fpm.sock;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment