Created
February 1, 2019 13:38
-
-
Save danstreeter/8cd5fcc4dc83390ba3471adf632c929b to your computer and use it in GitHub Desktop.
Nginx Config block for PHP-FPM Status and Ping page requests
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
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