{"action":"created","issue":{"url":"https://api.github.com/repos/mholt/caddy/issues/2060","repository_url":"https://api.github.com/repos/mholt/caddy","labels_url":"https://api.github.com/repos/mholt/caddy/issues/2060/labels{/name}","comments_url":"https://api.github.com/repos/mholt/caddy/issues/2060/comments","events_url":"https://api.github.com/repos/mholt/caddy/issues/2060/events","html_url":"https://github.com/mholt/caddy/issues/2060","id":304032519,"number":2060,"title":"Support Exact Match with Static Directive","user":{"login":"ckeeney","id":8799010,"avatar_url":"https://avatars2.githubusercontent.com/u/8799010?v=4","gravatar_id":"","url":"https://api.github.com/users/ckeeney","html_url":"https://github.com/ckeeney","followers_url":"https://api.github.com/users/ckeeney/followers","following_url":"https://api.github.com/users/ckeeney/following{/other_user}","gists_url":"https://api.github.com/users/ckeeney/gists{/gist_id}","starred_url":"https://api.github.com/users/ckeeney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ckeeney/subscriptions","organizations_url":"https://api.github.com/users/ckeeney/orgs","repos_url":"https://api.github.com/users/ckeeney/repos","events_url":"https://api.github.com/users/ckeeney/events{/privacy}","received_events_url":"https://api.github.com/users/ckeeney/received_events","type":"User","site_admin":false},"labels":[{"id":204890680,"url":"https://api.github.com/repos/mholt/caddy/labels/feature%20request","name":"feature request","color":"c7def8","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-03-10T02:14:19Z","updated_at":"2018-03-14T05:28:10Z","closed_at":null,"author_association":"NONE","body":"I use Caddy as a static file server in front of a few different backend servers including a php-fpm, django, and wordpress server.\r\n\r\nthe `status` directive has syntax `status code path`, where the [docs](https://caddyserver.com/docs/status) say \r\n\r\n> **`path`** is the base request path to match.\r\n\r\nI am running Caddy containers in Google Kubernetes Engine, and the default health check for web services is that a request to `/` returns a `200`-`399` response.  I have some containers that only handle traffic at `/some-path/*`.  `status 200 /` returns an empty-response 200 for all paths including `/some-path/foo`.  If there was a way to specify that this is an exact match, the `status` directive would nicely answer health checks."},"comment":{"url":"https://api.github.com/repos/mholt/caddy/issues/comments/372909036","html_url":"https://github.com/mholt/caddy/issues/2060#issuecomment-372909036","issue_url":"https://api.github.com/repos/mholt/caddy/issues/2060","id":372909036,"user":{"login":"Whitestrake","id":9500326,"avatar_url":"https://avatars0.githubusercontent.com/u/9500326?v=4","gravatar_id":"","url":"https://api.github.com/users/Whitestrake","html_url":"https://github.com/Whitestrake","followers_url":"https://api.github.com/users/Whitestrake/followers","following_url":"https://api.github.com/users/Whitestrake/following{/other_user}","gists_url":"https://api.github.com/users/Whitestrake/gists{/gist_id}","starred_url":"https://api.github.com/users/Whitestrake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Whitestrake/subscriptions","organizations_url":"https://api.github.com/users/Whitestrake/orgs","repos_url":"https://api.github.com/users/Whitestrake/repos","events_url":"https://api.github.com/users/Whitestrake/events{/privacy}","received_events_url":"https://api.github.com/users/Whitestrake/received_events","type":"User","site_admin":false},"created_at":"2018-03-14T05:28:10Z","updated_at":"2018-03-14T05:28:10Z","author_association":"CONTRIBUTOR","body":"Alternately, https://github.com/mholt/caddy/pull/1948 would provide the required capabilities, and even uses `status` as an example."}}
{"actor":{"display_login":"Whitestrake"}}