forked from StealthyDev/DirectoryListingModule
-
Notifications
You must be signed in to change notification settings - Fork 0
/
web.config
68 lines (60 loc) · 2.81 KB
/
web.config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<!-- ShellIconHandler configuration section declaration -->
<configSections>
<section name="iconHandler" type="Mvolo.ShellIcons.Web.ShellIconHandlerConfigurationSection" />
<section name="directoryListing" type="Mvolo.DirectoryListing.DirectoryListingModuleConfigurationSection" />
</configSections>
<system.webServer>
<modules>
<remove name="DirectoryListingModule" />
<add name="DirectoryListingModule" type="Mvolo.DirectoryListing.DirectoryListingModule" />
</modules>
<handlers>
<remove name="StaticFile" />
<add name="StaticFile" path="*" verb="*" modules="StaticFileModule,DefaultDocumentModule" resourceType="Either" requireAccess="Read" />
<add name="iconhandler" path="geticon.axd" verb="GET" type="Mvolo.ShellIcons.Web.ShellIconHandler" />
</handlers>
<staticContent>
<remove fileExtension=".woff" />
<remove fileExtension=".woff2" />
<mimeMap fileExtension=".woff" mimeType="application/x-font-woff" />
<mimeMap fileExtension=".woff2" mimeType="application/x-font-woff2" />
</staticContent>
<validation validateIntegratedModeConfiguration="false" />
<!--directoryBrowse enabled="true" /-->
</system.webServer>
<system.web>
<httpRuntime requestPathInvalidCharacters="" requestValidationMode="2.0" />
<httpHandlers>
<add path="geticon.axd" verb="GET" type="Mvolo.ShellIcons.Web.ShellIconHandler" />
</httpHandlers>
<httpModules>
<add name="DirectoryListingModule" type="Mvolo.DirectoryListing.DirectoryListingModule" />
</httpModules>
<!-- Debugging: -->
<!--customErrors mode="Off"/-->
<!--customErrors mode="RemoteOnly" defaultRedirect="accessdenied.htm"/-->
</system.web>
<!--
Directory listing module by Mike Volodarsky
Provides support for templated directory listings
Configuration:
enabled: whether or not the directory listing is enabled.
If its not, 403 Access Denied is returned
templatePage: the template page that should be used to
display the directory listing
-->
<directoryListing enabled="true" templatePage="~/dirlisting.aspx" />
<!--
Icon Handler by Mike Volodarsky
Retrieves the shell icon for the specified file name.
Configuration:
enabled: whether or not the icon handler is enabled (true by default)
enableClientCaching: whether client caching of the icons should be allowed (true by default)
enableServerCaching: whether the server should cache the icon bitmaps (true by default)
alwaysUseExtension: whether the handler should always look up the icon by extension
and not try to use the full file name (false by default)
-->
<iconHandler enabled="true" alwaysUseExtension="true" enableClientCaching="true" enableServerCaching="true" />
</configuration>