Isolate a web project at my_website.com/sub-section1

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

On this server we now plan to run another website-frontend too, at my_domain.com/, my_domain.com/page1, my_domain.com/page2, 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 ==> my_domain.com/admin, such that it’d think that it runs at my_domain.com 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?