title: how to change nginx config file for angular application
body: <p>My angular application is  running  on nginx server. When I type <code>http://**.8.100.248:30749</code> it show nginx is running. (Showing default index.html). But my application is present in <code>html</code> folder  having folder name <code>test</code>. So my application present in  “html —&gt; test—&gt; index.html”;;</p>
  <p>So when I type <code>http://**.8.100.248:30749/test/index.html</code> my application run on browser, but when I route from one page to another and <code>reload</code> my page it gives me <code>404</code>.</p>
  <p>Nginx gives me 404 when I reload my angular routed page. So  I changed the nginx config but still not success</p>
  <pre><code>location / {
      root   /usr/share/nginx/html;
      index  index.html index.htm;
      expires -1;
      add_header Pragma &quot;no-cache&quot;;
      add_header Cache-Control &quot;no-store, no-cache, must-revalidate, post-check=0, pre-check=0&quot;;
      try_files $uri$args $uri$args/ $uri $uri/ /test/index.html =404;
  }
  </code></pre>
  <p>any update</p>