2

我们无法通过 Paybox System 配置自定义 cgi (modulev3.exe)

我们关注: http ://social.msdn.microsoft.com/forums/fr-fr/windowsazuredevelopment/thread/29cdf931-4a86-4fa0-b2ae-c3081e8559c0

但这会导致 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>
4

0 回答 0