{"action":"created","issue":{"url":"https://api.github.com/repos/CiscoCloud/microservices-infrastructure/issues/704","labels_url":"https://api.github.com/repos/CiscoCloud/microservices-infrastructure/issues/704/labels{/name}","comments_url":"https://api.github.com/repos/CiscoCloud/microservices-infrastructure/issues/704/comments","events_url":"https://api.github.com/repos/CiscoCloud/microservices-infrastructure/issues/704/events","html_url":"https://github.com/CiscoCloud/microservices-infrastructure/issues/704","id":107171844,"number":704,"title":"How to access *-direct service through ha-proxy ","user":{"login":"TeaBough","id":2129896,"avatar_url":"https://avatars.githubusercontent.com/u/2129896?v=3","gravatar_id":"","url":"https://api.github.com/users/TeaBough","html_url":"https://github.com/TeaBough","followers_url":"https://api.github.com/users/TeaBough/followers","following_url":"https://api.github.com/users/TeaBough/following{/other_user}","gists_url":"https://api.github.com/users/TeaBough/gists{/gist_id}","starred_url":"https://api.github.com/users/TeaBough/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TeaBough/subscriptions","organizations_url":"https://api.github.com/users/TeaBough/orgs","repos_url":"https://api.github.com/users/TeaBough/repos","events_url":"https://api.github.com/users/TeaBough/events{/privacy}","received_events_url":"https://api.github.com/users/TeaBough/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-18T09:52:02Z","updated_at":"2015-09-18T20:05:37Z","closed_at":null,"body":"I have a service email running in a container on port 8080. This service has been registered in haproxy conf this way : \r\n```\r\nfrontend www\r\n    bind *:80\r\n    acl host_rights-direct hdr(host) -i rights-direct.192.168.31.51.xip.io\r\n    use_backend rights-direct_backend if host_rights-direct\r\nbackend rights-direct_backend\r\n   server worker3 192.168.0.10:0\r\n```\r\n\r\nHow am suppose to access this service through haproxy ? I tried : \r\n\r\n```\r\ncurl -L  --header \"Host: rights-direct.192.168.31.51.xip.io\" 192.168.31.51/check\r\n```\r\n\r\nBut it won't work since haproxy is redirecting this request to the port `0` of `192.168.0.10`.\r\n\r\nThe only thing working is : \r\n```\r\ncurl 192.168.0.10:8080/check\r\n```\r\nBut I really want to use haproxy !\r\n"},"comment":{"url":"https://api.github.com/repos/CiscoCloud/microservices-infrastructure/issues/comments/141553133","html_url":"https://github.com/CiscoCloud/microservices-infrastructure/issues/704#issuecomment-141553133","issue_url":"https://api.github.com/repos/CiscoCloud/microservices-infrastructure/issues/704","id":141553133,"user":{"login":"TeaBough","id":2129896,"avatar_url":"https://avatars.githubusercontent.com/u/2129896?v=3","gravatar_id":"","url":"https://api.github.com/users/TeaBough","html_url":"https://github.com/TeaBough","followers_url":"https://api.github.com/users/TeaBough/followers","following_url":"https://api.github.com/users/TeaBough/following{/other_user}","gists_url":"https://api.github.com/users/TeaBough/gists{/gist_id}","starred_url":"https://api.github.com/users/TeaBough/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TeaBough/subscriptions","organizations_url":"https://api.github.com/users/TeaBough/orgs","repos_url":"https://api.github.com/users/TeaBough/repos","events_url":"https://api.github.com/users/TeaBough/events{/privacy}","received_events_url":"https://api.github.com/users/TeaBough/received_events","type":"User","site_admin":false},"created_at":"2015-09-18T20:05:37Z","updated_at":"2015-09-18T20:05:37Z","body":"I've added a PR in https://github.com/CiscoCloud/calico-docker to set the port of the service in Consul."}}