Merge pull request #10 from mrvnklm/master

Added nginx location for FPM ping
migrate-github-actions
Tim de Pater 2019-02-06 08:53:57 +01:00 committed by GitHub
commit acf639ead2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 0 deletions

View File

@ -65,5 +65,16 @@ http {
log_not_found off;
deny all;
}
# allow fpm ping and status from localhost
#
location ~ ^/(fpm-status|fpm-ping)$ {
access_log off;
allow 127.0.0.1;
deny all;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
}
}
}