title: Only homepage works on angular site after ng build
body: <p>I'm working on an Angular 8 website. The site has multiple pages, www.site.com, www.site.com/foo and www.site.com/bar. When I use ng serve everything works perfectly. However when I run ng build, ng build --prod or ng build --aot the only page that works is the root page. www.mywebsite.com will work but www.mywebsite.com/foo and www.mywebsite.com/bar are a white screen with "File not found."</p>
  
  <p>I have tried building with ng build, ng build --prod and ng build --aot.</p>
  
  <p>I've also tried following directions from this <a href="https://stackoverflow.com/questions/51718020/when-running-ng-build-the-index-html-does-nothing">When running ng build, the index.html does nothing?</a></p>
  
  <p>Here are some routes that are in my app-routing.module.ts</p>
  
  <pre class="lang-js prettyprint-override"><code>const routes: Routes = [
    { path: '', component: HomepageComponent },
    { path: 'contact', component: ContactComponent },
    { path: 'editorial', component:  EditorialArticleComponent},
    { path: 'article/:id', component: ArticleComponent },
  ];
  </code></pre>
  
  <p>Update: I am using nginx on an Ubuntu server</p>