Skip to content

Commit

Permalink
Merge pull request #10 from mrvnklm/master
Browse files Browse the repository at this point in the history
Added nginx location for FPM ping
  • Loading branch information
TrafeX authored Feb 6, 2019
2 parents 3c133d9 + 6521196 commit acf639e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions config/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}

0 comments on commit acf639e

Please sign in to comment.