diff options
author | Slava <slava.ganzin@gmail.com> | 2020-05-06 04:54:04 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-06 11:54:04 +1000 |
commit | b07904f779273d525d9a1810b6159bb762d5c877 (patch) | |
tree | 1481c7be097605c57fb272c63b157cb10c60f2b6 | |
parent | 065cece268c806743bb7a020e45df54b433b1fb3 (diff) |
Update Running-behind-nginx.md (#8880)
We need non-greedy modifier for host otherwise path parts except file name is captured and ndpath gets only filename.
-rw-r--r-- | docs/Running-behind-nginx.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/Running-behind-nginx.md b/docs/Running-behind-nginx.md index edd58ad9ec..35e6c8051a 100644 --- a/docs/Running-behind-nginx.md +++ b/docs/Running-behind-nginx.md @@ -133,7 +133,7 @@ server { # the virtual host name of this subfolder should be exposed #server_name netdata.example.com; - location ~ /netdata/(?<behost>.*)/(?<ndpath>.*) { + location ~ /netdata/(?<behost>.*?)/(?<ndpath>.*) { 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; |