首页 > 解决方案 > 使用 Apache 在 Windows 上通过 CGI 运行 Web 应用程序

问题描述

我的应用程序在多个 dll 和可执行文件(通过 CGI)上运行,我像这样访问它:

http://localhost/MyApp/WebApplicationClient.cgi?Module=Login

我已将所有 JS/HTML/CSS 文件放在 MyApp 文件夹中,还有一个WebApplicationClient.dll, WebApplicationClient.exe.

在 Apachehttpd.conf文件中,我添加了这个:

AddHandler cgi-script .exe
ScriptAlias /cgi-bin/ "C:\wamp64\www\MyApp"

<Directory "C:\wamp64\www\MyApp">
    AllowOverride All
    Options +ExecCGI
    Options FollowSymLinks 
    Require all granted
    AddHandler cgi-script .cgi
    AddHandler cgi-script .exe
</Directory>

最后我得到这个错误:

在此处输入图像描述

我在这里做错了什么?

标签: apachewebservercgi

解决方案


推荐阅读