diff options
author | kalle (jag) <kalle.jillheden@gmail.com> | 2021-04-14 18:52:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-14 19:52:02 +0300 |
commit | c1866febbde93a8ebe892d8a81d296f3d30a9bb9 (patch) | |
tree | f039f6dcc2c47b0e0c47d6df763eb086a9727b06 /docs | |
parent | e4b5a0502cfef6b749c7e3b3adad20a6ef52c740 (diff) |
Add docs on Nginx with IPv6 listen for certbot to work (#10473)
Diffstat (limited to 'docs')
-rw-r--r-- | docs/Running-behind-nginx.md | 18 | ||||
-rw-r--r-- | docs/guides/step-by-step/step-10.md | 2 |
2 files changed, 14 insertions, 6 deletions
diff --git a/docs/Running-behind-nginx.md b/docs/Running-behind-nginx.md index 2f47447da3..83720039e5 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; diff --git a/docs/guides/step-by-step/step-10.md b/docs/guides/step-by-step/step-10.md index 28ab47c67c..d1c065c513 100644 --- a/docs/guides/step-by-step/step-10.md +++ b/docs/guides/step-by-step/step-10.md @@ -104,6 +104,8 @@ upstream backend { server { listen 80; + # uncomment the line if you want nginx to listen on IPv6 address + #listen [::]:80; # Change `example.com` to match your domain name. server_name netdata.example.com; |