for? What's the point: Will the following web.config file (located in ...">

What is <location path = "web.config"> for?

What's the point:

<location path="web.config">

Will the following web.config file (located in the root directory of the web application) doDynamicCompression be set to true or false?

<configuration>
    <system.webServer>
        <urlCompression doDynamicCompression="true" />
    </system.webServer>

    ...

    <location path="web.config">
        <system.webServer>
            <urlCompression doDynamicCompression="false" />
        </system.webServer>
    </location>
</configuration>
+3
source share
2 answers

It:

<location path="web.config">

Represents special settings for this path or file, overriding the parameters for the root and lower, which makes all your settings without a location tag. web.config is never served ... so dynamic compression will be enabled in your example.

+2
source

web.config. web.config . web.config machine.config. ASP.NET .config , .

+1

Source: https://habr.com/ru/post/1732337/


All Articles