apache - 使用 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>
最后我得到这个错误:
我在这里做错了什么?
解决方案
推荐阅读
- javascript - Angular 8:运行“ng build --prod”时core.ts中的错误
- r - 如何通过一系列值循环操作,其中一个值为 0
- ios - updateTransaction 中不包含已兑换的促销代码
- unity3d - 即使使用新版本 v2.0.0,air tap 也无法在 hololens 1 上工作
- reactjs - Dynamic react-bootstrap carousel breaking apart. (A valid React element (or null) must be returned.)
- twitter-bootstrap - Bootstrap 4 灵活的网格
- android - 如何使用 Intent 将一组对象从一个活动传递到另一个活动?
- ios - 在 SwiftUI 中,如何访问 UIViewRepresentable 中 .foregroundColor 和其他修饰符的当前值?
- terraform - 在 Terraform 中使用带有偏移量的计数
- c# - 如何使用文件观察程序确定文本 (.txt) 文件何时完成写入磁盘