2019-03-20 02:12:13 +01:00
|
|
|
# Stub status NGINX CONFIGURATION
|
|
|
|
|
# DO NOT MODIFY, ALL CHANGES WILL BE LOST AFTER AN WordOps (wo) UPDATE
|
|
|
|
|
{{#phpconf}}
|
|
|
|
|
upstream phpstatus {
|
2019-05-29 18:28:12 -04:00
|
|
|
server unix:/run/php/php72-fpm.sock;
|
2019-03-20 02:12:13 +01:00
|
|
|
}
|
2019-12-10 18:42:27 +01:00
|
|
|
upstream php73opcache {
|
|
|
|
|
server unix:/run/php/php73-fpm.sock;
|
|
|
|
|
}
|
|
|
|
|
upstream php74opcache {
|
|
|
|
|
server unix:/run/php/php74-fpm.sock;
|
|
|
|
|
}
|
2019-03-20 02:12:13 +01:00
|
|
|
{{/phpconf}}
|
|
|
|
|
server {
|
|
|
|
|
listen 127.0.0.1:80;
|
|
|
|
|
server_name 127.0.0.1 localhost;
|
|
|
|
|
access_log off;
|
|
|
|
|
log_not_found off;
|
2019-12-04 23:34:03 +01:00
|
|
|
root /var/www/22222/htdocs;
|
|
|
|
|
allow 127.0.0.1;
|
|
|
|
|
deny all;
|
2019-03-20 02:12:13 +01:00
|
|
|
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;
|
|
|
|
|
}
|
2019-12-04 23:34:03 +01:00
|
|
|
location / {
|
|
|
|
|
try_files $uri $uri/ /index.php$is_args$args;
|
|
|
|
|
}
|
|
|
|
|
location /cache/opcache/php72.php {
|
|
|
|
|
try_files $uri =404;
|
|
|
|
|
include fastcgi_params;
|
2019-12-10 18:42:27 +01:00
|
|
|
fastcgi_pass phpstatus;
|
2019-12-04 23:34:03 +01:00
|
|
|
access_log off;
|
|
|
|
|
log_not_found off;
|
|
|
|
|
}
|
|
|
|
|
location /cache/opcache/php73.php {
|
|
|
|
|
try_files $uri =404;
|
|
|
|
|
include fastcgi_params;
|
2019-12-10 18:42:27 +01:00
|
|
|
fastcgi_pass php73opcache;
|
2019-12-04 23:34:03 +01:00
|
|
|
access_log off;
|
|
|
|
|
log_not_found off;
|
|
|
|
|
}
|
|
|
|
|
location /cache/opcache/php74.php {
|
|
|
|
|
try_files $uri =404;
|
|
|
|
|
include fastcgi_params;
|
2019-12-10 18:42:27 +01:00
|
|
|
fastcgi_pass php74opcache;
|
2019-12-04 23:34:03 +01:00
|
|
|
access_log off;
|
|
|
|
|
log_not_found off;
|
|
|
|
|
}
|
2019-03-20 02:12:13 +01:00
|
|
|
{{/phpconf}}
|
|
|
|
|
}
|