php-fpm pool name fix
This commit is contained in:
parent
b543bf8a45
commit
babc38a489
|
@ -15,8 +15,9 @@ fastcgi_ignore_headers Cache-Control Expires Set-Cookie;
|
||||||
fastcgi_keep_conn on;
|
fastcgi_keep_conn on;
|
||||||
fastcgi_intercept_errors on;
|
fastcgi_intercept_errors on;
|
||||||
fastcgi_cache_background_update on;
|
fastcgi_cache_background_update on;
|
||||||
fastcgi_socket_keepalive on;
|
|
||||||
fastcgi_cache_lock on;
|
fastcgi_cache_lock on;
|
||||||
fastcgi_cache_lock_age 1s;
|
fastcgi_cache_lock_age 1s;
|
||||||
fastcgi_cache_lock_timeout 3s;
|
fastcgi_cache_lock_timeout 3s;
|
||||||
|
|
||||||
|
# comment the following line if you run nginx < 1.15.6
|
||||||
|
fastcgi_socket_keepalive on;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# Common upstream settings
|
# Common upstream settings
|
||||||
# replace php5.6 and php7.0 by php7.2
|
# php5.6 & php7.0 are replaced by php7.2
|
||||||
|
|
||||||
##################
|
##################
|
||||||
# php5.6-fpm
|
# php5.6-fpm
|
||||||
|
|
|
@ -1,73 +1,62 @@
|
||||||
# EasyEngine admin NGINX CONFIGURATION
|
# EasyEngine admin NGINX CONFIGURATION
|
||||||
|
|
||||||
server {
|
server {
|
||||||
|
|
||||||
listen 22222 default_server ssl http2;
|
listen 22222 default_server ssl http2;
|
||||||
|
|
||||||
access_log off;
|
access_log off;
|
||||||
error_log /var/log/nginx/22222.error.log;
|
error_log /var/log/nginx/22222.error.log;
|
||||||
|
|
||||||
ssl_certificate /var/www/22222/cert/22222.crt;
|
ssl_certificate /var/www/22222/cert/22222.crt;
|
||||||
ssl_certificate_key /var/www/22222/cert/22222.key;
|
ssl_certificate_key /var/www/22222/cert/22222.key;
|
||||||
|
|
||||||
# Force HTTP to HTTPS
|
# Force HTTP to HTTPS
|
||||||
error_page 497 =200 https://$host:22222$request_uri;
|
error_page 497 =200 https://$host:22222$request_uri;
|
||||||
|
|
||||||
root /var/www/22222/htdocs;
|
root /var/www/22222/htdocs;
|
||||||
index index.php index.htm index.html;
|
index index.php index.htm index.html;
|
||||||
|
|
||||||
# Turn on directory listing
|
# Turn on directory listing
|
||||||
autoindex on;
|
autoindex on;
|
||||||
|
# HTTP Authentication on port 22222
|
||||||
|
include common/acl.conf;
|
||||||
|
|
||||||
# HTTP Authentication on port 22222
|
location / {
|
||||||
include common/acl.conf;
|
try_files $uri $uri/ /index.php$is_args$args;
|
||||||
|
}
|
||||||
location / {
|
# nginx-vts-status
|
||||||
try_files $uri $uri/ /index.php$is_args$args;
|
location /vts_status {
|
||||||
}
|
vhost_traffic_status_display;
|
||||||
|
vhost_traffic_status_display_format html;
|
||||||
# nginx-vts-status
|
}
|
||||||
location /vts_status {
|
# Display menu at location /fpm/status/
|
||||||
vhost_traffic_status_display;
|
location = /fpm/status/;
|
||||||
vhost_traffic_status_display_format html;
|
location ~ /fpm/status/(.*) {
|
||||||
}
|
try_files $uri =404;
|
||||||
|
include fastcgi_params;
|
||||||
# Display menu at location /fpm/status/
|
fastcgi_param SCRIPT_NAME /status;
|
||||||
location = /fpm/status/ {}
|
fastcgi_pass $1;
|
||||||
|
}
|
||||||
location ~ /fpm/status/(.*) {
|
location ~ \.php$ {
|
||||||
try_files $uri =404;
|
try_files $uri =404;
|
||||||
include fastcgi_params;
|
include fastcgi_params;
|
||||||
fastcgi_param SCRIPT_NAME /status;
|
fastcgi_pass php72;
|
||||||
fastcgi_pass $1;
|
}
|
||||||
}
|
location /netdata {
|
||||||
|
|
||||||
location ~ \.php$ {
|
|
||||||
try_files $uri =404;
|
|
||||||
include fastcgi_params;
|
|
||||||
fastcgi_pass php72;
|
|
||||||
}
|
|
||||||
|
|
||||||
location /netdata {
|
|
||||||
return 301 /netdata/;
|
return 301 /netdata/;
|
||||||
}
|
}
|
||||||
|
location ~ /netdata/(?<ndpath>.*) {
|
||||||
location ~ /netdata/(?<ndpath>.*) {
|
|
||||||
proxy_redirect off;
|
proxy_redirect off;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
|
|
||||||
proxy_set_header X-Forwarded-Host $host;
|
proxy_set_header X-Forwarded-Host $host;
|
||||||
proxy_set_header X-Forwarded-Server $host;
|
proxy_set_header X-Forwarded-Server $host;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
proxy_set_header Connection "keep-alive";
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
proxy_pass_request_headers on;
|
proxy_pass_request_headers on;
|
||||||
proxy_set_header Connection "keep-alive";
|
|
||||||
proxy_store off;
|
proxy_store off;
|
||||||
proxy_pass http://netdata/$ndpath$is_args$args;
|
proxy_pass http://netdata/$ndpath$is_args$args;
|
||||||
|
|
||||||
gzip on;
|
gzip on;
|
||||||
gzip_proxied any;
|
gzip_proxied any;
|
||||||
gzip_types *;
|
gzip_types *;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue