45 lines
1.4 KiB
Plaintext
45 lines
1.4 KiB
Plaintext
#beginConf
|
|
|
|
#access_log /var/log/nginx/Backend-access.log;
|
|
error_log /var/log/nginx/Backend-error.log;
|
|
|
|
location = /backend/netdata {
|
|
return 301 /backend/netdata/;
|
|
}
|
|
|
|
location ~ /backend/netdata/(?<ndpath>.*) {
|
|
deny all; #enables/disables Netdata
|
|
proxy_redirect off;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Forwarded-Host $host;
|
|
proxy_set_header X-Forwarded-Server $host;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_http_version 1.1;
|
|
proxy_pass_request_headers on;
|
|
proxy_set_header Connection "keep-alive";
|
|
proxy_store off;
|
|
proxy_pass http://127.0.0.1:19999/$ndpath$is_args$args;
|
|
}
|
|
|
|
location /backend/database {
|
|
deny all; #enables/disables PHPMyadmin
|
|
index index.php index.html;
|
|
alias /usr/share/phpmyadmin;
|
|
location ~ \.php$ {
|
|
include fastcgi_params;
|
|
fastcgi_param SCRIPT_FILENAME $request_filename;
|
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
|
fastcgi_pass unix:/var/run/php/phpPHPver-fpm-Backend.sock;
|
|
fastcgi_index index.php;
|
|
}
|
|
}
|
|
|
|
location /backend/monit/ {
|
|
deny all; #enables/disables monit-websocket
|
|
proxy_pass http://unix:/var/run/monit/monit.sock:/;
|
|
}
|
|
|
|
location ~ /\.ht {
|
|
deny all;
|
|
}
|
|
#endConf |