Score:0

EC2 - Serving multiple websites on 1 instance, each on its' own IP address

in flag

Currently I have an EC2 machine (t2.small which is limited to 3 network interfaces and 4 private IPv4 addresses per interface) with 1 elastic ip associated to it and it runs Ubuntu with a simple Apache server that serves about 2-3 websites, which they all connect eventually to the same RDS instance. What I want to achieve is to be able to serve each of these websites on its' own IP address but still using only 1 ec2 instance and 1 apache server only. Is it even possible?

I know I can assign a secondary private IP address to an EC2 instance, hence I can assign an extra public IP address to it - but how do I tell my apache server to re-route requests to a different folder on /var/www/html when user hits different IPs.

cn flag
Are the websites static HTML/JS, or running under e.g. PHP, Node?
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.