{"action":"created","issue":{"url":"https://api.github.com/repos/axsuul/rails-reverse-proxy/issues/15","repository_url":"https://api.github.com/repos/axsuul/rails-reverse-proxy","labels_url":"https://api.github.com/repos/axsuul/rails-reverse-proxy/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/axsuul/rails-reverse-proxy/issues/15/comments","events_url":"https://api.github.com/repos/axsuul/rails-reverse-proxy/issues/15/events","html_url":"https://github.com/axsuul/rails-reverse-proxy/issues/15","id":194843204,"number":15,"title":"Preserve Host Headers","user":{"login":"Peter-Puck","id":24509639,"avatar_url":"https://avatars.githubusercontent.com/u/24509639?v=3","gravatar_id":"","url":"https://api.github.com/users/Peter-Puck","html_url":"https://github.com/Peter-Puck","followers_url":"https://api.github.com/users/Peter-Puck/followers","following_url":"https://api.github.com/users/Peter-Puck/following{/other_user}","gists_url":"https://api.github.com/users/Peter-Puck/gists{/gist_id}","starred_url":"https://api.github.com/users/Peter-Puck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Peter-Puck/subscriptions","organizations_url":"https://api.github.com/users/Peter-Puck/orgs","repos_url":"https://api.github.com/users/Peter-Puck/repos","events_url":"https://api.github.com/users/Peter-Puck/events{/privacy}","received_events_url":"https://api.github.com/users/Peter-Puck/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-11T17:13:01Z","updated_at":"2016-12-13T16:21:52Z","closed_at":null,"body":"Hello, and thanks for this gem! Can rails-reverse-proxy be configured to always preserve the host:header (ie the equivalent of apache's \"ProxyPreserveHost\" setting)?"},"comment":{"url":"https://api.github.com/repos/axsuul/rails-reverse-proxy/issues/comments/266784527","html_url":"https://github.com/axsuul/rails-reverse-proxy/issues/15#issuecomment-266784527","issue_url":"https://api.github.com/repos/axsuul/rails-reverse-proxy/issues/15","id":266784527,"user":{"login":"Peter-Puck","id":24509639,"avatar_url":"https://avatars.githubusercontent.com/u/24509639?v=3","gravatar_id":"","url":"https://api.github.com/users/Peter-Puck","html_url":"https://github.com/Peter-Puck","followers_url":"https://api.github.com/users/Peter-Puck/followers","following_url":"https://api.github.com/users/Peter-Puck/following{/other_user}","gists_url":"https://api.github.com/users/Peter-Puck/gists{/gist_id}","starred_url":"https://api.github.com/users/Peter-Puck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Peter-Puck/subscriptions","organizations_url":"https://api.github.com/users/Peter-Puck/orgs","repos_url":"https://api.github.com/users/Peter-Puck/repos","events_url":"https://api.github.com/users/Peter-Puck/events{/privacy}","received_events_url":"https://api.github.com/users/Peter-Puck/received_events","type":"User","site_admin":false},"created_at":"2016-12-13T16:21:52Z","updated_at":"2016-12-13T16:21:52Z","body":"We're using the gem to do a reverse proxy to Jasper Reports i.e.:\r\nreverse_proxy \"http://JasperServer:8080/jasperserver\" do |config|\r\n[...]\r\n\r\nWhen this reverse proxy is configured in either Apache or the rails-reverse-proxy gem, we get an infinite redirect loop.  In Apache, we can set the ProxyPreserveHost option to true which fixes this issue.  Unfortunately, passing in the header doesn't resolve the issue for this gem.  We've even tried setting target_request_headers['HOST'] = \"hostname:port\" in the client.rb.\r\n\r\n\r\n\r\n"}}
{"actor":{"display_login":"Peter-Puck"}}