Display files without extension as text/plain


#1

Hello everyone, in order to verify a SSL certificate, I needed to display a file without extension as plain text. If you use usual settings you will see this message:

The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.

to avoid this problem, we need to create a web.config file and paste this code

<?xml version="1.0" encoding="UTF-8"?>
 <configuration>
     <system.webServer>
	 <staticContent>
	   <mimeMap fileExtension="." mimeType="text/html" />
   	 </staticContent>
     </system.webServer>
 </configuration>

this file must be placed at wwwroot folder.