Isolate a web project at

I have a web project - admin dashboard. After an admin or user logs in, he’s at
It’s behind nginx being a reverse proxy.

On this server we now plan to run another website-frontend too, at,,, etc…

  1. I know that I can handle this by creating a new section in an nginx config which would prepend the existing sections. Will this alone be engouh? Or will I have to set some kind of path variable in my Phoenix project too, in Endpoint so that the Routes.aaa_path/url(...) continue to generate proper urls and paths?

  2. Also, I want to isolate my admin dashboard project at /admin ==>, such that it’d think that it runs at and it’s the root. Similar to chroot in Linux.
    Is this also handled by nginx in this case - behind reverse proxy? Not by Phoenix?