Hi! Reverse proxy (such as Nginx) can proxy different requests to the
different apps based on different params.
For example, you have an application doing auth and application doing
something only for the authorized users. So domain auth.app.com could be
proxied to auth app and domain internal.app.com to the second app.
You can do it based on whatever nginx supports - host, location, some
get args or header in request and so on.
On 10/09/2019 09:16, Stefan Adams 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]
<mailto:[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/3878db06-79f7-9958-13f2-93714714849b%40gmail.com.