summaryrefslogtreecommitdiffstats
path: root/docs/Running-behind-caddy.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/Running-behind-caddy.md')
-rw-r--r--docs/Running-behind-caddy.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/Running-behind-caddy.md b/docs/Running-behind-caddy.md
index c1d57504..a20fd053 100644
--- a/docs/Running-behind-caddy.md
+++ b/docs/Running-behind-caddy.md
@@ -5,11 +5,11 @@ custom_edit_url: https://github.com/netdata/netdata/edit/master/docs/Running-beh
# Netdata via Caddy
-To run Netdata via [Caddy's proxying,](https://caddyserver.com/docs/proxy) set your Caddyfile up like this:
+To run Netdata via [Caddy v2 proxying,](https://caddyserver.com/docs/caddyfile/directives/reverse_proxy) set your Caddyfile up like this:
```caddyfile
netdata.domain.tld {
- proxy / localhost:19999
+ reverse_proxy localhost:19999
}
```
@@ -19,8 +19,8 @@ To run Netdata in a subfolder:
```caddyfile
netdata.domain.tld {
- proxy /netdata/ localhost:19999 {
- without /netdata
+ handle_path /netdata/* {
+ reverse_proxy localhost:19999
}
}
```