I have an IIS 10 site and I can download document index.html from the root directory without issues. However, when I try to download the same file using the default document feature, I get status code 404.0 and it looks like IIS made no attempt to convert the request from / to /index.html.
My web.config file:
<defaultDocument enabled="true">
<files>
<clear />
<add value="index.html" />
</files>
</defaultDocument>
<handlers>
<add name="Static File" path="*" verb="*" modules="StaticFileModule,DefaultDocumentModule,DirectoryListingModule" resourceType="File" requireAccess="Script" />
<add name="DefaultDocument" path="*" verb="*" modules="DefaultDocumentModule" resourceType="File" />
</handlers>
Ah. Found the issue. My static file handler had resourceType="File", so was only invoked for explicitly named files. It should have been as follows:
This appears to be necessary for default document to work.
Using the GUI from IISM it's: