For demonstrating purposes, I have a very basic app setup. It consists of two projects, app01 and app02 Both folders are int the apps folder
apps
├── app01
│ ├── index.html
│ ├── style.css
│ └── subpage
│ └── index.html
└── app02
├── index.html
└── style.css
The actual alias works. When I go to my-apps.local:3460 I see Welcome to App 01 and when I go to my-apps.local:3460/blog I see Welcome to App 02 (Blog)
However the CSS (or any other static file) is not loaded in my /blog location.
In my Nginx conf file for this project I have also set up very basic:
listen *:3460;
server_name example.com;
location ~* ^/blog2 {
alias /Users/username/test/apps/app2/;
try_files $uri index.html =404;
index index.html;
}
location /blog1 {
alias /Users/username/test/apps/app1/;
try_files $uri index.html =404;
index index.html;
}