A major issue when using the same domain in multiple applications is cookie security. If the applications are independent, you might want to make sure that a vulnerability in one application does not necessarily affect your other applications.
Otherwise, with nginx, there really are no restrictions on your installation, however you decided to go. You can use nginx to easily combine or disconnect multiple domains and / or ports / servers into any setting you want.
If you decide to go with multiple domains or multiple paths in the same domain, you will have more to do with what applications you have in mind and how to logically separate them from each other. Using the rewrite directive, even if you make the wrong choice first, if you have the desire, you can always fix it later (keeping all existing links flawlessly), largely without any bad effect.
source share