Update 'config/nginx/Backend-unconfigured'
This commit is contained in:
@@ -1,20 +1,15 @@
|
|||||||
upstream netdata {
|
|
||||||
server 127.0.0.1:19999;
|
|
||||||
keepalive 64;
|
|
||||||
}
|
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
root /var/www/backend/html;
|
root /var/www/html;
|
||||||
index index.php index.html;
|
index index.php index.html;
|
||||||
server_name DOMAINname;
|
server_name DOMAINname;
|
||||||
|
|
||||||
|
|
||||||
location = /backend/netdata {
|
location = /backend/netdata {
|
||||||
return 301 /netdata/;
|
return 301 /netdata/;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ /backend/netdata/(?<ndpath>.*) {
|
location ~ /backend/netdata/(?<ndpath>.*) {
|
||||||
|
#deny all; #enables/disables Netdata
|
||||||
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;
|
||||||
@@ -24,17 +19,19 @@ server {
|
|||||||
proxy_pass_request_headers on;
|
proxy_pass_request_headers on;
|
||||||
proxy_set_header Connection "keep-alive";
|
proxy_set_header Connection "keep-alive";
|
||||||
proxy_store off;
|
proxy_store off;
|
||||||
proxy_pass http://netdata/$ndpath$is_args$args;
|
proxy_pass http://127.0.0.1:19999/$ndpath$is_args$args;
|
||||||
}
|
}
|
||||||
|
|
||||||
location /backend/database {
|
location /backend/database {
|
||||||
root /usr/share/phpmyadmin;
|
#deny all; #enables/disables PHPMyadmin
|
||||||
try_files $uri $uri/ /index.php$is_args$args;
|
alias /usr/share/phpmyadmin;
|
||||||
}
|
location ~ \.php$ {
|
||||||
|
include fastcgi_params;
|
||||||
location ~ \.php$ {
|
fastcgi_param SCRIPT_FILENAME $request_filename;
|
||||||
include snippets/fastcgi-php.conf;
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||||
fastcgi_pass unix:/var/run/php/phpPHPver-fpm.sock;
|
fastcgi_pass unix:/var/run/php/phpPHPver-fpm.sock;
|
||||||
|
fastcgi_index index.php;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ /\.ht {
|
location ~ /\.ht {
|
||||||
|
|||||||
Reference in New Issue
Block a user