in reply to Re^2: Dancer2 App Deployment through Apache Proxy
in thread Dancer2 App Deployment through Apache Proxy

IMO the "Perfect Solution" is to have the app receive its mount prefix from the reverse proxy, and then you can even mount the app at different host/paths simultaneously. In other words, each request supplies the prefix to be used for that request.

I don't use Dancer, and I try to avoid Apache, but the checklist looks something like:

There are many ways to do it of course, including Apache mod_proxy_html that can rewrite your html output to modify the generated URLs, but this just leads to frustration. (If you're not in control of the application, sometimes its the only option, though)

  • Comment on Re^3: Dancer2 App Deployment through Apache Proxy