Files
WPIQ/wo/cli/templates/stub_status.mustache
2019-12-04 04:01:28 +01:00

42 lines
999 B
Plaintext

# Stub status NGINX CONFIGURATION
# DO NOT MODIFY, ALL CHANGES WILL BE LOST AFTER AN WordOps (wo) UPDATE
{{#phpconf}}
upstream phpstatus {
server unix:/run/php/php72-fpm.sock;
}
{{/phpconf}}
server {
listen 127.0.0.1:80;
server_name 127.0.0.1 localhost;
access_log off;
log_not_found off;
root /var/www/22222/htdocs;
allow 127.0.0.1;
deny all;
location ~ /(stub_status|nginx_status) {
stub_status on;
allow 127.0.0.1;
deny all;
access_log off;
log_not_found off;
}
{{#phpconf}}
location ~ /(status|ping) {
include fastcgi_params;
fastcgi_pass phpstatus;
access_log off;
log_not_found off;
}
location / {
try_files $uri $uri/ /cache/opcache/opgui.php$is_args$args;
}
location ~ \.php$ {
try_files $uri =404;
include fastcgi_params;
fastcgi_pass phpstatus;
access_log off;
log_not_found off;
}
{{/phpconf}}
}