- 主题:IIS怎么执行其他后缀
自己编一个,读出来,然后response出去
【 在 yesim (yesim) 的大作中提到: 】
: 比如 *.act 都是 html,
: IIS handler mappings里添加对 *.act script的处理文件
: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll
: ...................
--
FROM 59.175.226.*
没搞过。你是IIS的什么版本?可考虑试试 handler.
【 在 yesim (yesim) 的大作中提到: 】
: 有省事办法吧?
--
FROM 59.175.226.*
在web.config中
<system.webServer>
<handlers>
<add name="html" verb="*" path="*.acb" type="namespace.Type(自己写的或者用已有的),assembly(dll)" />
</handlers>
<security>
<requestFiltering>
<fileExtensions>
<remove fileExtension=".acb" />
<add allowed="true" fileExtension=".acb" />
</fileExtensions>
</requestFiltering>
</security>
</system.webServer>
【 在 yesim (yesim) 的大作中提到: 】
: 7,配置好弄么
--
FROM 59.175.226.*
自己写一个吧。10行。TextStream.Read(); TextStream.Write()搞定。
【 在 yesim (yesim) 的大作中提到: 】
: 试过么?就是iis handle mappings里加,用了几个现成 type都不成哈
: System.Web.Handlers.TransferRequestHandler
: 。。。。
: ...................
--
FROM 59.175.226.*