Score:0

Reverse proxy for multiple applications and ports

tg flag
Tor

I have X instances of the same application running on X amount of EC2s. The frontend is using port 8000 and it's also consuming messages at port 5671 (rabbitmq).

I have A-records (app1.example.com, app2.example.com...) pointing to each EC2 instance.

Would a reverse proxy work for consolidating this? Having cnames for all subdomains pointing to the reverse proxy, and then having that proxy the traffic to the correct EC2 instance based on the subdomain, I got this working, except for the rabbitmq messages, would I have to set up duplicate server blocks to listen on port 5671 for those to be proxied to the correct instance as well?

My end goal here is to make it easier to manage SSL certs and new instances of the application and not run out of elastic IPs. A reverse proxy might not be the solution here, but I would really appreciate any input!

Tim avatar
gp flag
Tim
Question is confusing, which is probably why you haven't gotten any replies. If you can clarify you might get more help.
I sit in a Tesla and translated this thread with Ai:

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.