title: Nginx: Issue serving static assets (js, css, etc.) with multi locations
body: <p>For demonstrating purposes, I have a very basic app setup. It consists of <strong>two</strong> projects, <strong>app01</strong> and <strong>app02</strong>
  Both folders are int the <strong>apps</strong> folder</p>
  <pre><code>apps
  ├── app01
  │   ├── index.html
  │   ├── style.css
  │   └── subpage
  │       └── index.html
  └── app02
      ├── index.html
      └── style.css
  </code></pre>
  <p>The actual alias works. When I go to <code>my-apps.local:3460</code> I see <code>Welcome to App 01</code> and when I go to <code>my-apps.local:3460/blog</code> I see <code>Welcome to App 02 (Blog)</code>
  However the CSS (or any other static file) is not loaded in my <code>/blog</code> location.</p>
  <p>In my Nginx conf file for this project I have also set up very basic:</p>
  <pre><code>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;
  }
  </code></pre>