{"action":"closed","issue":{"url":"https://api.github.com/repos/mholt/caddy/issues/854","repository_url":"https://api.github.com/repos/mholt/caddy","labels_url":"https://api.github.com/repos/mholt/caddy/issues/854/labels{/name}","comments_url":"https://api.github.com/repos/mholt/caddy/issues/854/comments","events_url":"https://api.github.com/repos/mholt/caddy/issues/854/events","html_url":"https://github.com/mholt/caddy/issues/854","id":157322059,"number":854,"title":"proxy_header Host doesn't appear to work","user":{"login":"kaihendry","id":765871,"avatar_url":"https://avatars.githubusercontent.com/u/765871?v=3","gravatar_id":"","url":"https://api.github.com/users/kaihendry","html_url":"https://github.com/kaihendry","followers_url":"https://api.github.com/users/kaihendry/followers","following_url":"https://api.github.com/users/kaihendry/following{/other_user}","gists_url":"https://api.github.com/users/kaihendry/gists{/gist_id}","starred_url":"https://api.github.com/users/kaihendry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaihendry/subscriptions","organizations_url":"https://api.github.com/users/kaihendry/orgs","repos_url":"https://api.github.com/users/kaihendry/repos","events_url":"https://api.github.com/users/kaihendry/events{/privacy}","received_events_url":"https://api.github.com/users/kaihendry/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-28T05:33:25Z","updated_at":"2016-05-29T07:12:38Z","closed_at":"2016-05-29T07:12:38Z","body":"#### 1. What version of Caddy are you running (`caddy -version`)?\r\n\r\n238250e\r\n\r\n#### 2. What are you trying to do?\r\n\r\nReverse proxy to a site with a Host: defined\r\n\r\n#### 3. What is your entire Caddyfile?\r\n```text\r\nlocalhost\r\nproxy / testserver:8080 {\r\n    proxy_header Host foobar.com\r\n}\r\n```\r\n\r\n#### 4. How did you run Caddy (give the full command and describe the execution environment)?\r\n\r\n`caddy`\r\n\r\n```\r\n$ hostnamectl\r\n   Static hostname: teefour\r\n         Icon name: computer-laptop\r\n           Chassis: laptop\r\n        Machine ID: 08fa83b18a364e11aa225f5b23ff3a19\r\n           Boot ID: 1460ab922a064e10b811bf38c03282bd\r\n  Operating System: Arch Linux\r\n            Kernel: Linux 4.5.1-1-t460s\r\n      Architecture: x86-64\r\n```\r\n\r\n#### 5. What did you expect to see?\r\n\r\nRequest on _testsever_ with **Host: foobar.com**\r\n\r\n#### 6. What did you see instead (give full error messages and/or log)?\r\n\r\nWrong site server since **Host: localhost:2015** is sent over\r\n\r\n#### 7. How can someone who is starting from scratch reproduce this behavior as minimally as possible?\r\n\r\nhttp://s.natalian.org/2016-05-28/debug.go is how I setup _testserver_\r\n\r\n\r\nBtw this is how I've done a reverse proxy with golang in my own tests: https://github.com/kaihendry/go-rproxy-test/blob/master/main.go which works well."}}
{"actor":{"display_login":"abiosoft"}}