title: aspnet core 5 route not found if deployed to Linux
body: <p>weird problem here.</p>
  <p>I have an aspnet blazor app hosted on an aspnet core.</p>
  <p>The application works well when deployed on to a Windows machine, but when deploying on to a Linux box complains that cannot find an URL. Every route that I have using the <code>{param_name}</code> fail.</p>
  <pre class="lang-cs prettyprint-override"><code>[HttpGet]
  [Route(&quot;/api/report/summary/{m}&quot;)]
  public async Task&lt;IActionResult&gt; GetSummary(string m)
  {
  </code></pre>
  <pre class="lang-cs prettyprint-override"><code># Startup.cs
  app.UseRouting();
  
  app.UseIdentityServer();
  app.UseAuthentication();
  app.UseAuthorization();
  
  app.UseEndpoints(endpoints =&gt;
  {
      endpoints.MapRazorPages();
      endpoints.MapControllers();
      endpoints.MapFallbackToFile(&quot;index.html&quot;);
  });
  </code></pre>
  <p>The example that Microsoft <a href="https://docs.microsoft.com/en-us/aspnet/core/fundamentals/routing?view=aspnetcore-5.0#endpoint" rel="nofollow noreferrer">in the docs</a> has also does not work.</p>
  <pre class="lang-cs prettyprint-override"><code>  endpoints.MapGet(&quot;/hello/{name:alpha}&quot;, async context =&gt;
                  {
                      var name = context.Request.RouteValues[&quot;name&quot;];
                      await context.Response.WriteAsync($&quot;Hello {name}!&quot;);
                  });
  </code></pre>
  <p>Have you guys ever come across such thing?</p>