Request config for haproxy with unicorn

My haproxy are in one machine(aws instance), and my rails app server with unicorn are in different machine(aws instance). It will be great if i get some help from community.