Added PHP status and ping pages processing

This commit is contained in:
Alexey Pustovalov
2022-08-15 17:35:34 +03:00
parent da2f2f073a
commit 9acf660f21
55 changed files with 294 additions and 24 deletions

View File

@ -46,6 +46,15 @@ server {
return 404;
}
location ~ ^/(status|ping)$ {
access_log off;
fastcgi_pass unix:/tmp/php-fpm.sock;
fastcgi_param SCRIPT_FILENAME $webroot$fastcgi_script_name;
fastcgi_index index.php;
include fastcgi_params;
}
location / {
try_files $uri $uri/ /index.php?$args;
}

View File

@ -73,6 +73,15 @@ server {
return 404;
}
location ~ ^/(status|ping)$ {
access_log off;
fastcgi_pass unix:/tmp/php-fpm.sock;
fastcgi_param SCRIPT_FILENAME $webroot$fastcgi_script_name;
fastcgi_index index.php;
include fastcgi_params;
}
location / {
try_files $uri $uri/ /index.php?$args;
}