title: a single regex for all location paths regardless of the name in nginx?
body: <p>We have an angular app hosted on nginx which uses random url paths. Am trying to write a regex to match them all to redirect them to a common index.html file.
  Which means all traffic to</p>
  
  <pre><code>domain.com/abc
  domain.com/xyz
  </code></pre>
  
  <p>should all go to the index.html file.
  Here's what i have been trying:</p>
  
  <pre><code>location ~* ^/[a-z](.+)$ {
  rewrite ^ /index.html last;
  try_files $uri $uri/ /index.html;
  }
  </code></pre>
  
  <p>This doesnt work. Kindly help.</p>