@cryptotaxi247 / netdata-1 / commits / b07904f77

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.

Slava committed May 6, 2020 at 04:54 UTC b07904f779273d525d9a1810b6159bb762d5c877
1 file changed +1 -1
docs/Running-behind-nginx.md
+1 -1
@@ -133,7 +133,7 @@ server {
133 # the virtual host name of this subfolder should be exposed
134 #server_name netdata.example.com;
135
136 - location ~ /netdata/(?<behost>.*)/(?<ndpath>.*) {
136 + location ~ /netdata/(?<behost>.*?)/(?<ndpath>.*) {
137 proxy_set_header X-Forwarded-Host $host;
138 proxy_set_header X-Forwarded-Server $host;
139 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;