NGINX reverse proxy multiple domains to localhost:3000 with different paths
Below is my current nginx configuration. I have built a multi tenant website that allows users to create their own websites through our portal and their created website will be shown as pagepro.mn/p/{thier site name}. The app works fine is I proceed to pagepro.mn/p/balletschool.mn the balletschool.mn site will show. However I want to be able to access this from a different domain like balletschool.mn. So i setup another server block with the servername as it is and am trying to proxy pass it just like the default server but it isn’t working with error: