Install Config Wiki

All about installing, configuring and troubleshooting

User Tools

Site Tools


wiki:directory_access_security_in_iis

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

wiki:directory_access_security_in_iis [2017/10/28 19:03] (current)
Line 1: Line 1:
 +===== Add a web.config file to the root of your DokuWiki website =====
  
 +Add a web.config file to the root of your DokuWiki website to block web access to these directories: ​ /data/, /conf/, /bin/, and /inc/.
 +
 +<file xml web.config>​
 +<?xml version="​1.0"​ encoding="​UTF-8"?>​
 +<​configuration>​
 +    <​system.webServer>​
 +        <​security>​
 +            <​requestFiltering>​
 +                <​filteringRules>​
 +                </​filteringRules>​
 +                <​denyUrlSequences>​
 +                    <add sequence="/​data/"​ />
 +                    <add sequence="/​conf/"​ />
 +                    <add sequence="/​bin/"​ />
 +                    <add sequence="/​inc/"​ />
 +                </​denyUrlSequences>​
 +            </​requestFiltering>​
 +        </​security>​
 +    </​system.webServer>​
 +</​configuration>​
 +</​file>​
wiki/directory_access_security_in_iis.txt ยท Last modified: 2017/10/28 19:03 (external edit)