From cc611b5984f3bbf4801f77ccc24c06717aee15bd Mon Sep 17 00:00:00 2001 From: bprieshof Date: Thu, 3 Oct 2019 15:19:14 +0200 Subject: [PATCH] Add 'config/nginx/Backend-unconfigured' --- config/nginx/Backend-unconfigured | 44 +++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 config/nginx/Backend-unconfigured diff --git a/config/nginx/Backend-unconfigured b/config/nginx/Backend-unconfigured new file mode 100644 index 0000000..fdcde6f --- /dev/null +++ b/config/nginx/Backend-unconfigured @@ -0,0 +1,44 @@ +upstream netdata { + server 127.0.0.1:19999; + keepalive 64; +} + +server { + listen 80; + root /var/www/backend/html; + index index.php index.html; + server_name DOMAINname; + + + location = /backend/netdata { + return 301 /netdata/; + } + + location ~ /backend/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://netdata/$ndpath$is_args$args; + } + + location /backend/database { + root /usr/share/phpmyadmin; + try_files $uri $uri/ /index.php$is_args$args; + } + + location ~ \.php$ { + include snippets/fastcgi-php.conf; + fastcgi_pass unix:/var/run/php/phpPHPver-fpm.sock; + } + + location ~ /\.ht { + deny all; + } + +} \ No newline at end of file