summaryrefslogtreecommitdiffstats
path: root/docs/Running-behind-nginx.md
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2021-05-19 12:33:38 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2021-05-19 12:33:59 +0000
commit1ee0c09c5742557e037df5421ca62abddb90ae22 (patch)
tree71c0fa48bb6d31d036c9badd7e038527f90d1a73 /docs/Running-behind-nginx.md
parentReleasing debian version 1.30.1-1. (diff)
downloadnetdata-1ee0c09c5742557e037df5421ca62abddb90ae22.tar.xz
netdata-1ee0c09c5742557e037df5421ca62abddb90ae22.zip
Merging upstream version 1.31.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'docs/Running-behind-nginx.md')
-rw-r--r--docs/Running-behind-nginx.md18
1 files changed, 12 insertions, 6 deletions
diff --git a/docs/Running-behind-nginx.md b/docs/Running-behind-nginx.md
index 2f47447da..83720039e 100644
--- a/docs/Running-behind-nginx.md
+++ b/docs/Running-behind-nginx.md
@@ -53,6 +53,8 @@ upstream backend {
server {
# nginx listens to this
listen 80;
+ # uncomment the line if you want nginx to listen on IPv6 address
+ #listen [::]:80;
# the virtual host name of this
server_name netdata.example.com;
@@ -82,16 +84,18 @@ upstream netdata {
}
server {
- listen 80;
+ listen 80;
+ # uncomment the line if you want nginx to listen on IPv6 address
+ #listen [::]:80;
- # the virtual host name of this subfolder should be exposed
- #server_name netdata.example.com;
+ # the virtual host name of this subfolder should be exposed
+ #server_name netdata.example.com;
- location = /netdata {
+ location = /netdata {
return 301 /netdata/;
- }
+ }
- location ~ /netdata/(?<ndpath>.*) {
+ location ~ /netdata/(?<ndpath>.*) {
proxy_redirect off;
proxy_set_header Host $host;
@@ -127,6 +131,8 @@ upstream backend-server2 {
server {
listen 80;
+ # uncomment the line if you want nginx to listen on IPv6 address
+ #listen [::]:80;
# the virtual host name of this subfolder should be exposed
#server_name netdata.example.com;