Commit 7c9913cb by Carl Bergquist Committed by GitHub

Merge pull request #10605 from tsvehagen/haproxy-example

docs: Add haproxy example for running behind reverse-proxy
parents 15087554 f129754a
...@@ -68,6 +68,23 @@ server { ...@@ -68,6 +68,23 @@ server {
} }
} }
``` ```
#### HAProxy configuration with sub path
```bash
frontend http-in
bind *:80
use_backend grafana_backend if { path /grafana } or { path_beg /grafana/ }
backend grafana_backend
# Requires haproxy >= 1.6
http-request set-path %[path,regsub(^/grafana/?,/)]
# Works for haproxy < 1.6
# reqrep ^([^\ ]*\ /)grafana[/]?(.*) \1\2
server grafana localhost:3000
```
### IIS URL Rewrite Rule (Windows) with Subpath ### IIS URL Rewrite Rule (Windows) with Subpath
IIS requires that the URL Rewrite module is installed. IIS requires that the URL Rewrite module is installed.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment