{"action":"created","issue":{"url":"https://api.github.com/repos/mholt/caddy/issues/406","labels_url":"https://api.github.com/repos/mholt/caddy/issues/406/labels{/name}","comments_url":"https://api.github.com/repos/mholt/caddy/issues/406/comments","events_url":"https://api.github.com/repos/mholt/caddy/issues/406/events","html_url":"https://github.com/mholt/caddy/issues/406","id":121076194,"number":406,"title":"Proxy to `unix:` socket","user":{"login":"eiszfuchs","id":240167,"avatar_url":"https://avatars.githubusercontent.com/u/240167?v=3","gravatar_id":"","url":"https://api.github.com/users/eiszfuchs","html_url":"https://github.com/eiszfuchs","followers_url":"https://api.github.com/users/eiszfuchs/followers","following_url":"https://api.github.com/users/eiszfuchs/following{/other_user}","gists_url":"https://api.github.com/users/eiszfuchs/gists{/gist_id}","starred_url":"https://api.github.com/users/eiszfuchs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eiszfuchs/subscriptions","organizations_url":"https://api.github.com/users/eiszfuchs/orgs","repos_url":"https://api.github.com/users/eiszfuchs/repos","events_url":"https://api.github.com/users/eiszfuchs/events{/privacy}","received_events_url":"https://api.github.com/users/eiszfuchs/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mholt/caddy/labels/feature%20request","name":"feature request","color":"c7def8"},{"url":"https://api.github.com/repos/mholt/caddy/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-12-08T19:04:02Z","updated_at":"2015-12-25T16:45:22Z","closed_at":null,"body":"I'm currently writing a blog post as I try to replace `nginx` with Caddy step by step. My current setup is that I have a bunch of Python applications that I bind to `unix:` sockets* using gunicorn.\r\nFrom what I understand, gunicorn isn't exactly FastCGI, so I had to use Caddy's `proxy` directive.\r\n\r\n```\r\nhttp://foobar.local {\r\n    tls off\r\n    proxy / unix:/var/www/flask/app.socket\r\n}\r\n```\r\n\r\nThis doesn't work as I would expect. I *believe* because it hasn't been implemented yet.\r\nThe socket file is owned by the same user Caddy is running under. Yet the only response I get is `502 Bad Gateway`.\r\n\r\nAm I missing something or is this hereby considered a feature request?\r\n\r\n---\r\n\r\n\\* I'm using sockets instead of ports because I hate having a spreadsheet with all the ports I use. Sockets are easier to organize."},"comment":{"url":"https://api.github.com/repos/mholt/caddy/issues/comments/167249975","html_url":"https://github.com/mholt/caddy/issues/406#issuecomment-167249975","issue_url":"https://api.github.com/repos/mholt/caddy/issues/406","id":167249975,"user":{"login":"PunKeel","id":1859135,"avatar_url":"https://avatars.githubusercontent.com/u/1859135?v=3","gravatar_id":"","url":"https://api.github.com/users/PunKeel","html_url":"https://github.com/PunKeel","followers_url":"https://api.github.com/users/PunKeel/followers","following_url":"https://api.github.com/users/PunKeel/following{/other_user}","gists_url":"https://api.github.com/users/PunKeel/gists{/gist_id}","starred_url":"https://api.github.com/users/PunKeel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PunKeel/subscriptions","organizations_url":"https://api.github.com/users/PunKeel/orgs","repos_url":"https://api.github.com/users/PunKeel/repos","events_url":"https://api.github.com/users/PunKeel/events{/privacy}","received_events_url":"https://api.github.com/users/PunKeel/received_events","type":"User","site_admin":false},"created_at":"2015-12-25T16:45:22Z","updated_at":"2015-12-25T16:45:22Z","body":":+1: <3"}}