I defined 2 virtual servers with Nginx to handle
marketing stuff and user authentication on the master domain www.example.com and
the admin app on the subdomain admin.example.com once the user is authenticated
server {
listen 8080;
server_name example.com;
root html;
location / {
index index.html index.htm;
}
server {
listen 8080;
server_name admin.example.local;
root html/admin;
location / {
index index.html index.htm;
}
}
I would like to handle the marketing stuff with an Angular.js one-page app and the admin stuff with an Angular.js multi-page app..
is it possible ? should I design 2 apps or 1 ap only ?