Reputation: 334
Why using nginx?
That simple question, I couldn't figure out and I guess my understanding about proxy network and cloud VM is not sufficient enough. I have been using EC2 for the past few months deploy several websites via localhost of the instance. To my understanding the Public DNS should map to that localhost. Or if there is a need of configuration in between that makes sense too. But why have to be nginx.
Can I use other tool, if yes what are they? And can I deploy without even a proxy in between meaning mapping public DNS directly to its localhost?
Thanks
Upvotes: 1
Views: 1107
Reputation: 10859
Basically, your question is "why do I need a (reverse) proxy server", right? It doesn't make much difference if you're on EC2 or not and nginx is just one (very popular) proxy server.
There are more than enough articles on the reverse proxy topic, for example The Benefits of a Reverse Proxy.
So no, nginx is not required, but it's a popular choice for a reverse proxy. If it's worth the effort depends on your use case.
Upvotes: 1