'Main-Install-Script.sh' updaten
This commit is contained in:
@@ -434,16 +434,16 @@ cat <<EOF > /etc/nginx/sites-available/default
|
||||
|
||||
location ~ /netdata/(?<ndpath>.*) {
|
||||
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 <<EOF > /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):
|
||||
|
||||
Reference in New Issue
Block a user