You may encounter the error "404.17 Not Found - The requested content appears to be script" when trying to serve a file that has no file extension (e.g., a file named simply verify or test).
This is a common issue during SSL Certificate verification (such as Let's Encrypt), where the validator expects to read a text file with no extension inside a .well-known folder. By default, IIS may block these files because it does not know which MIME type to assign to them.
To fix this, you need to explicitly tell IIS to treat extensionless files as standard text or HTML files. You can do this by adding a specific MIME map in your web.config file.
web.config file already exists, edit it.web.config.Insert the following XML code. This tells the server to map any file with an empty extension (.) to the text/html content type.
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<staticContent>
<mimeMap fileExtension="." mimeType="text/html" />
</staticContent>
</system.webServer>
</configuration>