A
A
andreystrelkov2016-11-21 13:10:58
IIS
andreystrelkov, 2016-11-21 13:10:58

How to enable only anonymous authorization in IIS for a specific path?

Good afternoon, on a site where Windows authorization is globally enabled, you need to enable only anonymous authorization for a certain path, or rather a request (that is, in fact, there is no such thing in the site directories).
Those. for example, for the entire site mysite.domain, only Windows is enabled, and for the path mysite.domain/file.xml, allow only anonymous

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Kuznetsov, 2016-11-21
@DarkRaven

Basically something like this:

<location path="mysite.domain/file.xml">
      <system.web>
         <authorization>
            <allow users="?"/>
         </authorization>
      </system.web>
   </location>

Here is the original answer: stackoverflow.com/a/10351155/2822609

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question