我们无法通过 Paybox System 配置自定义 cgi (modulev3.exe)
但这会导致 404 错误
服务定义.csdef:
<Startup>
<Task commandLine="EnableIsapi.cmd" executionContext="elevated" taskType="simple" />
</Startup>
启用Isapi.cmd:
%windir%\system32\inetsrv\appcmd.exe set config /section:isapiCgiRestriction /+"[path='%RoleRoot%\approot\cgi-bin\modulev3.exe',description='Paybox',allowed='True']"
网络配置:
<system.webServer>
<handlers accessPolicy="Read, Write, Script, Execute">
<remove name="CGI-exe" />
<add name="CGI-exe" path="*.exe" verb="*" modules="CgiModule" resourceType="File" requireAccess="Execute" allowPathInfo="true" />
</handlers>
<security>
<requestFiltering>
<fileExtensions>
<add fileExtension=".exe" allowed="true" />
</fileExtensions>
</requestFiltering>
<isapiCgiRestriction>
<add allowed="true" path="%RoleRoot%\approot\cgi-bin\modulev3.exe" description="PAYBOXMODULE" />
</isapiCgiRestriction>
</security>
</system.webServer>