title: Nginx page not / 404 with Angular build bundle
body: <p>Angular bundle work, but if i go to another page, for example /cards, nginx return 404. Why?
  Im using docker file for starting nginx, Angular app building with ./node_modules/@angular/cli/bin/ng.js build
  I will search response in google, but config edit isnt help</p>
  <p>nginx.conf</p>
  <pre><code>server {
   listen 80;
   server_name localhost;
   root /usr/share/nginx/html;
   index index.html index.htm;
   location / {
    try_files $uri $uri/ /index.html;\n\
   }
  }
  </code></pre>
  <p>app.module.ts</p>
  <pre><code>...imports...
  
  const appRoutes: Routes =[
    { path: '', component: HomeComponent},
    { path: 'registration', component: RegistrationComponent},
    { path: 'login', component: LoginComponent},
    { path: 'cards', component: CardsComponent},
  ];
  
  
  @NgModule({
    declarations: [
      AppComponent,
      HeaderComponent,
      HomeComponent,
      RegistrationComponent,
      LoginComponent,
      PreloaderComponent,
      CardsComponent,
      CardComponent,
      CardTextPipe,
    ],
    imports: [
      BrowserModule,
      FormsModule,
      RouterModule.forRoot(appRoutes),
      HttpClientModule
    ],
    providers: [],
    bootstrap: [AppComponent]
  })
  export class AppModule { }
  </code></pre>
  <p>Dockerfile for building nginx</p>
  <pre><code>FROM nginx:latest
  COPY . ./usr/share/nginx/html
  RUN echo &quot;server {\n\
   listen 80;\n\
   server_name localhost;\n\
   root /usr/share/nginx/html;\n\
   index index.html index.htm;\n\
   location / {\n\
    try_files $uri $uri/ /index.html;\n\
   }\n\
  }&quot; &gt; /etc/nginx/conf.d/nginx.conf
  </code></pre>