我试图绕过我的头,在脚本中设置IIS的模块映射。 我有命令
%windir%\system32\inetsrv\appcmd set config /section:handlers /+"[path='*.cgi',modules='CgiModule',name='vscgi',verb='get,head,post']"
它几乎可以做所有我需要的东西,但是,我并不是明确地接受三个动词,而是接受所有的动词(比如在通过UI定义模块映射时默认系统默认)。 这可能吗?
将动词属性值指定为'*' ,就像在IIS.NET上提供的示例代码一样 :
appcmd set config /section:handlers /+"[path='*.cgi',modules='CgiModule',name='vscgi',verb='*']"