Multiple paths for ApiURIs-ISAPI-Integrated-4.0 in web.config

I am using ASP.NET MVC 4 and want to support points in URLs. So I added the following configuration to web.config, as suggested by another Q / A:

<system.webServer>
  <handlers>
    <add name="ApiURIs-ISAPI-Integrated-4.0"
     path="/user/*"
     verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS"
     type="System.Web.Handlers.TransferRequestHandler"
     preCondition="integratedMode,runtimeVersionv4.0" />
  </handlers>
</system.webServer>

Now I want to enable this for several ways, how can I do this?


Things I tried:

Combining paths with a semicolon or a semicolon that does not work, i.e.

path="/user/*,/event/*"

path="/user/*;/event/*"

If I add more tags <add>for each path, I get the error message "Unable to add duplicate collection entry of type" add "with the unique key attribute" name "set to" ApiURIs-ISAPI-Integrated-4.0 ",.

'*' , script css, . , , .

+4
1

, name , . : -

<system.webServer>
  <handlers>
    <add name="ApiURIs-ISAPI-Integrated-4.0_1"
     path="/user/*"
     verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS"
     type="System.Web.Handlers.TransferRequestHandler"
     preCondition="integratedMode,runtimeVersionv4.0" />
    <add name="ApiURIs-ISAPI-Integrated-4.0_2"
     path="/event/*"
     verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS"
     type="System.Web.Handlers.TransferRequestHandler"
     preCondition="integratedMode,runtimeVersionv4.0" />
  </handlers>
</system.webServer>
+11

All Articles