title: ASP.NET Core - serving static files
body: <p>I'm following this documentation but I'm getting stuck:
  <a href="https://docs.microsoft.com/en-us/aspnet/core/fundamentals/static-files" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/aspnet/core/fundamentals/static-files</a></p>
  
  <p>Consider my directory structure:</p>
  
  <pre><code>wwwroot
      dist
          index.html
  </code></pre>
  
  <p>In my startup class, I have:</p>
  
  <pre><code>public void Configure(IApplicationBuilder app, IHostingEnvironment env)
  {
      if (env.IsDevelopment())
      {
          app.UseDeveloperExceptionPage();
      }
  
      app.UseDefaultFiles();
      app.UseStaticFiles();
      app.UseStaticFiles(new StaticFileOptions
      {
          FileProvider = new PhysicalFileProvider(Path.Combine(Directory.GetCurrentDirectory(), "wwwroot", "dist"))
      });
  }
  </code></pre>
  
  <p>When I start the application I don't see my index.html page, but I do if I navigate to <code>&lt;host&gt;/dist/index.html</code></p>
  
  <p>How can I configure this so that ASP.NET automatically takes me to that page from <code>&lt;host&gt;</code>?</p>