title: 404 on route refresh in angular 4, nginx server and apache
body: <p>I created a new component in Angular 4 and added its route 'account'.
  When I run <code>ng serve</code> home page opens and there is a link to account page.
  On clicking account page link account page opens. If I refresh the page, it works.</p>
  
  <p>The problem is that when I make build with <code>ng build</code> and upload build to apache. If I click on 'account' link the account page opens. 
  But if I refresh or try open account route directly i get 404 error on.</p>
  
  <p>If I add 'use hash', then it works with '#', but I don't want this.</p>
  
  <p>I am using angular 4.2.4</p>