title: Nginx location does not work
body: <pre><code>server {
  listen 80;
  server_name _;
  access_log /data/wwwlogs/access_nginx.log combined;
  root /data/wwwroot/default;
  index index.html;
  
  location /dist {
      try_files $uri $uri/ /dist/index.html;
  }
  </code></pre>
  
  <p>I'm trying to configure my nginx server. I hope when I try to visit "ipaddress/dist/<strong>anything</strong>", all requests can be redirected to "ipaddress/dist/index.html". It is a requirement for routing of Angular2. However, I can only find 404 page. It seems "try_files" or "location /dist" does not work. What' wrong? Thank you.</p>