{"action":"created","issue":{"url":"https://api.github.com/repos/mholt/caddy/issues/336","labels_url":"https://api.github.com/repos/mholt/caddy/issues/336/labels{/name}","comments_url":"https://api.github.com/repos/mholt/caddy/issues/336/comments","events_url":"https://api.github.com/repos/mholt/caddy/issues/336/events","html_url":"https://github.com/mholt/caddy/issues/336","id":116705932,"number":336,"title":"Internal proxies","user":{"login":"bhilton","id":7861,"avatar_url":"https://avatars.githubusercontent.com/u/7861?v=3","gravatar_id":"","url":"https://api.github.com/users/bhilton","html_url":"https://github.com/bhilton","followers_url":"https://api.github.com/users/bhilton/followers","following_url":"https://api.github.com/users/bhilton/following{/other_user}","gists_url":"https://api.github.com/users/bhilton/gists{/gist_id}","starred_url":"https://api.github.com/users/bhilton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhilton/subscriptions","organizations_url":"https://api.github.com/users/bhilton/orgs","repos_url":"https://api.github.com/users/bhilton/repos","events_url":"https://api.github.com/users/bhilton/events{/privacy}","received_events_url":"https://api.github.com/users/bhilton/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-13T06:00:10Z","updated_at":"2015-11-14T20:16:58Z","closed_at":null,"body":"The X-Accel-Redirect header support is useful as a way of injecting an authentication middleware into the request stack, but once authentication is complete, I would like to be able to redirect client requests to another backend api, not just to a local directory for serving files.\r\n\r\nCould you consider adding support for X-Accel-Redirect into proxy routes and also supporting the internal keyword inside a proxy definition?"},"comment":{"url":"https://api.github.com/repos/mholt/caddy/issues/comments/156743575","html_url":"https://github.com/mholt/caddy/issues/336#issuecomment-156743575","issue_url":"https://api.github.com/repos/mholt/caddy/issues/336","id":156743575,"user":{"login":"mholt","id":1128849,"avatar_url":"https://avatars.githubusercontent.com/u/1128849?v=3","gravatar_id":"","url":"https://api.github.com/users/mholt","html_url":"https://github.com/mholt","followers_url":"https://api.github.com/users/mholt/followers","following_url":"https://api.github.com/users/mholt/following{/other_user}","gists_url":"https://api.github.com/users/mholt/gists{/gist_id}","starred_url":"https://api.github.com/users/mholt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mholt/subscriptions","organizations_url":"https://api.github.com/users/mholt/orgs","repos_url":"https://api.github.com/users/mholt/repos","events_url":"https://api.github.com/users/mholt/events{/privacy}","received_events_url":"https://api.github.com/users/mholt/received_events","type":"User","site_admin":false},"created_at":"2015-11-14T20:16:58Z","updated_at":"2015-11-14T20:16:58Z","body":"Let me defer to @mschoebel on this, as I don't have much (any) experience using the X-Accel suite of headers. If we do make a change, we should be careful not to duplicate much/any code, if possible..."}}