I have an amazon EC2 instance with two website site1.com and site2.com. The EC2 is behind an ELB (elastic load balancer) , the site1 and site2 point to the ELB. Now in apache to redirect correctly the users the to right website, i use vhosts. The problem is that apache uses ServerName to determine what website is called. With ELB, ServerName is always the same, because both site1 and site2 get ELB address before reaching apache, the ip and ports are also the same. So how you guys work around this ?
PS: i don't want to use two load balancer, because i will add more websites and having many load balancer costs too much.
EDIT I want to keep only port 80 for the reasons explained in +kums answer comment bellow.