prometheus/web
Julius Volz fcd33bbfd8 Improve web redirection and 404 behavior.
Previously we redirected any non-existent path to the root (or path
prefix).

The new behavior:

With no path prefix:

- "" -> "/"
- "/biz" -> 404

With path prefix of "/foo/bar":

- "" -> "/foo/bar/"
- "/" -> "/foo/bar/"
- "/foo/bar" -> "/foo/bar/"
- "/biz" -> /foo/bar/biz"
  (anything not starting with the path prefix gets the prefix prepended)
- "/foo/bar/biz" -> 404
2015-05-23 12:46:16 +02:00
..
api Merge pull request #706 from prometheus/beorn7/persistence2 2015-05-21 13:48:52 +02:00
blob Switch Prometheus to use github.com/prometheus/log. 2015-05-20 18:19:32 +02:00
httputils Switch Prometheus to promql package. 2015-04-28 16:19:23 +02:00
static Make all paths absolute to support proxies 2015-04-02 20:36:47 +02:00
templates Merge branch 'master' into fabxc/servdisc 2015-05-20 14:13:08 +02:00
.gitignore Ignore web/static/generated and build/root/share 2013-04-25 12:33:27 +02:00
alerts.go Rename RuleManager to Manager, remove interface. 2015-04-29 16:42:10 +02:00
consoles.go Switch Prometheus to promql package. 2015-04-28 16:19:23 +02:00
handler.go Make all paths absolute to support proxies 2015-04-02 20:36:47 +02:00
Makefile Improve comments about embedding. 2015-02-02 12:37:39 +01:00
status.go Fix old template naming 2015-05-19 15:40:41 +02:00
web.go Improve web redirection and 404 behavior. 2015-05-23 12:46:16 +02:00