It's extremely common for a Mojolicious web application to be hosted behind some kind of HTTP proxy: A production website usually includes Varnish, or Nginx, or a CDN (probably using Varnish or Nginx).
In the most common case, a web application is the entire domain, so configuring
the reverse proxy is very simple: Add the
-p option to
or set the
MOJO_REVERSE_PROXY environment variable to a true value. See the
Mojolicious Cookbook for more
But what if my application doesn't have its own domain? How do I host a Mojolicious application as a reverse proxy from a path in another domain?