title: Browser cannot download .txt file if the project is .Net Core Restful API
body: <p>I am trying to activate my SSL for my project but one of the the urls doesn't respond.</p>
  
  <p>This is the web site and when you paste the url to the browser, it downloads the .txt file.
  <a href="http://www.xxx.co.uk/.well-known/pki-validation/83CB00D29E282E1FFD6DFB220F030EF4.txt" rel="nofollow noreferrer">http://www.xxx.co.uk/.well-known/pki-validation/83CB00D29E282E1FFD6DFB220F030EF4.txt</a></p>
  
  <p>This is the Restful .Net Core API domain and when you paste the url to the browser, it returns 404 error.
  <a href="http://api.xxx.co.uk/.well-known/pki-validation/83CB00D29E282E1FFD6DFB220F030EF4.txt" rel="nofollow noreferrer">http://api.xxx.co.uk/.well-known/pki-validation/83CB00D29E282E1FFD6DFB220F030EF4.txt</a></p>
  
  <p>Under the IIS I have compared the psychical paths, permissions and it seems everything is same. I believe something in Rest API blocks the .txt file download. Should I check the web.config or something I need to add to the C# source code? Should I update ConfigureServices(IServiceCollection services)? In IIS I have checked MIME Types and the .txt is already defined.</p>
  
  <p>Any suggestions?</p>