Most commonly, different nginx servers (the nginx equivalent of Apache virtualhosts) will listen on different hostnames, and then proxy to different backend applications.
-Dan On Tue, Sep 10, 2019 at 2:17 AM Stefan Adams <[email protected]> wrote: > From the Cookbook#Reverse Proxy > <https://mojolicious.org/perldoc/Mojolicious/Guides/Cookbook#Reverse-proxy> > : > > *[A reverse proxy] can provide a lot of benefits, like terminating SSL > connections from the outside, limiting the number of concurrent open > sockets towards the Mojolicious application (or even using Unix sockets), > balancing load across multiple instances, or supporting several > applications through the same IP/port.* > > > What steps are necessary to support several applications through the same > IP/port? > > I'm picturing having two separate Mojolicious applications running in two > separate system processes, each with their own Perl binary even. What is > necessary to reverse proxy a connection to these two separate apps > listening on the same IP/port? How does the reverse proxy (nginx) know > which process should get the request proxied to it? > > Or am I misunderstanding what is stated in bold above? > > -- > You received this message because you are subscribed to the Google Groups > "Mojolicious" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/mojolicious/CACyQ%2BFSkT_YXpnUbakT%3DO%2Bi1y99vVxpg8rVo%3D8V33LUtLhNfPQ%40mail.gmail.com > <https://groups.google.com/d/msgid/mojolicious/CACyQ%2BFSkT_YXpnUbakT%3DO%2Bi1y99vVxpg8rVo%3D8V33LUtLhNfPQ%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/mojolicious/CABMkAVUec9he1116T6Mu%3Dd1ZdAR7Cj_UdaFTxSD%2BrC8wm7UvmQ%40mail.gmail.com.
