From 0091868008d008e30b0a18a0d1dc8406062955e5 Mon Sep 17 00:00:00 2001 From: ictmaatwerk Date: Wed, 5 Sep 2018 12:41:07 +0000 Subject: [PATCH] 'Main-Install-Script.sh' updaten --- Main-Install-Script.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Main-Install-Script.sh b/Main-Install-Script.sh index 08a2582..92db88a 100644 --- a/Main-Install-Script.sh +++ b/Main-Install-Script.sh @@ -434,16 +434,16 @@ cat < /etc/nginx/sites-available/default location ~ /netdata/(?.*) { 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-Server "\$host"; - proxy_set_header X-Forwarded-For "\$proxy_add_x_forwarded_for"; + 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"; + proxy_pass http://netdata/\$ndpath\$is_args\$args; gzip on; gzip_proxied any; @@ -456,11 +456,11 @@ cat < /etc/nginx/sites-available/default server_name _; location / { - try_files "\$uri" "\$uri"/ =404; + try_files \$uri \$uri/ =404; } # pass PHP scripts to FastCGI server - location ~ \.php$ { + location ~ \.php\$ { include snippets/fastcgi-php.conf; # With php-fpm (or other unix sockets):