1
0
mirror of https://github.com/tennc/webshell.git synced 2025-12-09 14:11:30 +00:00

Update httpHandlers.md

This commit is contained in:
tennc
2015-06-16 14:30:43 +08:00
parent b44d134824
commit 3f6e6227f8

View File

@@ -1,14 +1,16 @@
修改web.config添加或者修改httpHandlers: 修改web.config添加或者修改httpHandlers:
```
<httpHandlers> <httpHandlers>
<add path="*.api" verb="*" type="WooYun.CustomizeHttpHandler"/> <add path="*.api" verb="*" type="WooYun.CustomizeHttpHandler"/>
</httpHandlers> </httpHandlers>
```
如果已经存在 httpHandlers 则在标签内添加,如果<system.webServer>也有配置httpHandlers那么就配置在<system.webServer>里 如果已经存在 httpHandlers 则在标签内添加,如果<system.webServer>也有配置httpHandlers那么就配置在<system.webServer>里
但是有一点需要特别注意:<system.webServer>里面一定要配置runAllManagedModulesForAllRequests为true,否会启动报错。 但是有一点需要特别注意:<system.webServer>里面一定要配置runAllManagedModulesForAllRequests为true,否会启动报错。
```
<system.webServer> <system.webServer>
<modules runAllManagedModulesForAllRequests="true" /> <modules runAllManagedModulesForAllRequests="true" />
</system.webServer> </system.webServer>
```