I know that nginx is a web server, and passenger is an app server. We can just run
passenger start
to start up our rails application, and everything seems to work fine. But there are a lot of posts about setting up nginx as a reverse proxy.
It would be helpful if an expert on this broke down each component, and explain why need nginx and passenger together, and the role of each.
Questions for thought:
- What is the main purpose of wrapping the passenger around nginx, as opposed to running passenger standalone?
- Is it bad to just run passenger standalone?
- Does running "passenger start" boot up its own nginx server?