I need to have different IP addresses pointing to an specific ip address and port on a EC2 instance, where i have running multiple sites on Apache virtual hosts For example: xx.xx.xx.xx -> 107.22.56.213:8080 yy.yy.yy.yy -> 107.22.56.213:8081
Is this posible on AWS?
EDIT 1:
Ok I have attached two different IP addresses to a single instance. But I am having problems configuring the reverse proxy, my 000-default.conf it is like this:
<VirtualHost 54.158.187.139:80>
ProxyPass / 127.0.0.1:8080
ProxyPassReverse / 127.0.0.1:8080
</VirtualHost>
<VirtualHost 35.153.37.243:80>
ProxyPass / 127.0.0.1:8081
ProxyPassReverse / 127.0.0.1:8081
</VirtualHost>
But it is still showing the default 000-default site, and I have already restarted the apache2 service
ServerName
in theVirtualHost
if it doesn't show the right site. – adrianTNT Jan 14 '20 at 3:29