I need to open the landing page on /, and vueJS application on /app. Here is my current nginx setup:
server {
listen 80;
location /app {
alias /var/www/app/dist/;
try_files $uri $uri/ /index.html;
}
location / {
alias /var/www/landing/dist/;
try_files $uri $uri/ /index.html;
}
}
It opens landing on /, and vueJS app when I go to /app, however, if I open /app/login it goes to landing page instead of vue application. What am I doing wrong ?
[..]/app/dist/index.html?/appshould open/app/dist/index.htmlalias /var/www/app/dist;without the trailing/./+ addedtry_files $uri $uri/ /index.html last;, thelastto/appand it worked.