IIS不会运行C CGI程序
IIS wont run C++ CGI program
我在IIS上遇到了运行C CGI的重大问题。我本可以发誓我的设置与我的最后一个计算机(Windows 10 32bit NextBook 11 Flex)相同,但是我去打开Windows功能,启用IIS,打开CGI和过滤器,以及过滤器,以及Web包含,启用处理程序并添加了应用程序。但是我似乎无法运行它。这是日志
#Software: Microsoft Internet Information Services 10.0
#Version: 1.0
#Date: 2017-02-18 16:00:27
#Fields: date time s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) cs(Referer) sc-status sc-substatus sc-win32-status time-taken
2017-02-18 16:00:27 ::1 GET /chrisandarpitllc/ - 80 - ::1 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/56.0.2924.87+Safari/537.36 - 403 14 0 728
2017-02-18 16:00:27 ::1 GET /favicon.ico - 80 - ::1 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/56.0.2924.87+Safari/537.36 http://localhost/chrisandarpitllc/ 404 0 2 3
2017-02-18 16:00:36 ::1 GET /chrisandarpitllc/index.exe - 80 - ::1 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/56.0.2924.87+Safari/537.36 - 404 2 1260 7
2017-02-18 16:01:58 ::1 GET /chrisandarpitllc/index.exe - 80 - ::1 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/56.0.2924.87+Safari/537.36 - 502 2 3221225781 47
2017-02-18 16:05:08 ::1 GET /chrisandarpitllc/index.exe - 80 - ::1 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/56.0.2924.87+Safari/537.36 - 502 2 3221225781 12
2017-02-18 16:05:08 ::1 GET /chrisandarpitllc/index.exe - 80 - ::1 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/56.0.2924.87+Safari/537.36 - 502 2 3221225781 5
#Software: Microsoft Internet Information Services 10.0
#Version: 1.0
#Date: 2017-02-18 16:25:25
#Fields: date time s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) cs(Referer) sc-status sc-substatus sc-win32-status time-taken
2017-02-18 16:25:25 ::1 GET /chrisandarpitllc/index.exe - 80 - ::1 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/56.0.2924.87+Safari/537.36 - 502 2 3221225781 14
2017-02-18 16:26:50 ::1 GET /chrisandarpitllc - 80 - ::1 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/56.0.2924.87+Safari/537.36 - 301 0 0 1
2017-02-18 16:26:50 ::1 GET /chrisandarpitllc/ - 80 - ::1 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/56.0.2924.87+Safari/537.36 - 200 0 0 2
2017-02-18 16:26:53 ::1 GET /chrisandarpitllc/index.exe - 80 - ::1 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/56.0.2924.87+Safari/537.36 http://localhost/chrisandarpitllc/ 502 2 3221225781 11
2017-02-18 16:28:14 ::1 GET /favicon.ico - 80 - ::1 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/56.0.2924.87+Safari/537.36 http://www.chrisandarpitllc.com/ 404 0 2 0
#Software: Microsoft Internet Information Services 10.0
#Version: 1.0
#Date: 2017-02-18 16:31:07
#Fields: date time s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) cs(Referer) sc-status sc-substatus sc-win32-status time-taken
2017-02-18 16:31:07 ::1 GET /chrisandarpitllc/ - 80 - ::1 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/56.0.2924.87+Safari/537.36 - 200 0 0 9
2017-02-18 16:31:10 ::1 GET /chrisandarpitllc/index.exe - 80 - ::1 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/56.0.2924.87+Safari/537.36 http://localhost/chrisandarpitllc/ 502 2 3221225781 29
2017-02-18 16:32:08 ::1 GET /chrisandarpitllc/index.exe - 80 - ::1 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/56.0.2924.87+Safari/537.36 http://localhost/chrisandarpitllc/ 502 2 3221225781 27
2017-02-18 16:32:08 ::1 GET /chrisandarpitllc/index.exe - 80 - ::1 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/56.0.2924.87+Safari/537.36 http://localhost/chrisandarpitllc/ 502 2 3221225781 10
2017-02-18 16:32:08 ::1 GET /chrisandarpitllc/index.exe - 80 - ::1 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/56.0.2924.87+Safari/537.36 http://localhost/chrisandarpitllc/ 502 2 3221225781 5
2017-02-18 16:32:08 ::1 GET /chrisandarpitllc/index.exe - 80 - ::1 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/56.0.2924.87+Safari/537.36 http://localhost/chrisandarpitllc/ 502 2 3221225781 5
2017-02-18 16:32:13 ::1 GET /chrisandarpitllc/ - 80 - ::1 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/56.0.2924.87+Safari/537.36 - 502 2 3221225781 13
2017-02-18 16:32:58 ::1 GET /chrisandarpitllc/ - 80 - ::1 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/56.0.2924.87+Safari/537.36 - 502 2 3221225781 19
2017-02-18 16:32:58 ::1 GET /chrisandarpitllc/ - 80 - ::1 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/56.0.2924.87+Safari/537.36 - 502 2 3221225781 5
2017-02-18 16:32:58 ::1 GET /chrisandarpitllc/ - 80 - ::1 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/56.0.2924.87+Safari/537.36 - 502 2 3221225781 5
2017-02-18 16:32:58 ::1 GET /chrisandarpitllc/ - 80 - ::1 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/56.0.2924.87+Safari/537.36 - 502 2 3221225781 13
#Software: Microsoft Internet Information Services 10.0
#Version: 1.0
#Date: 2017-02-18 16:46:58
#Fields: date time s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) cs(Referer) sc-status sc-substatus sc-win32-status time-taken
2017-02-18 16:46:58 ::1 GET /chrisandarpitllc/index.exe - 80 - ::1 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/56.0.2924.87+Safari/537.36 - 404 2 1260 663
2017-02-18 16:46:58 ::1 GET /favicon.ico - 80 - ::1 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/56.0.2924.87+Safari/537.36 http://localhost/chrisandarpitllc/index.exe 404 0 2 5
2017-02-18 16:50:22 ::1 GET /chrisandarpitllc/index.exe - 80 - ::1 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/56.0.2924.87+Safari/537.36 - 404 2 1260 20
2017-02-18 16:52:18 ::1 GET /chrisandarpitllc/index.exe - 80 - ::1 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/56.0.2924.87+Safari/537.36 - 502 2 3221225781 90
2017-02-18 16:52:18 ::1 GET /chrisandarpitllc/index.exe - 80 - ::1 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/56.0.2924.87+Safari/537.36 - 502 2 3221225781 7
2017-02-18 16:52:18 ::1 GET /chrisandarpitllc/index.exe - 80 - ::1 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/56.0.2924.87+Safari/537.36 - 502 2 3221225781 6
2017-02-18 16:58:14 ::1 GET /chrisandarpitllc/ - 80 - ::1 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/56.0.2924.87+Safari/537.36 - 502 2 3221225781 29
这是错误的屏幕截图
IIS错误给出
这是代码(这是一个简单的测试)
#include <iostream>
int main ()
{
std::cout << "Content-Type:text/htmln" << std::endl;
std::cout << "Hello world" << std::endl;
return 0;
}
谁能告诉我为什么这一切会发生?我怎样才能解决这个问题?如果您需要任何信息,请告诉我,我将提供。
我还在另一个设备上检查了网站,这就是我得到的。
移动设备错误
content-type标头可能由" r n r n"符号完成
相关文章:
- Mongodb c++驱动程序:如何查询元素的数组
- C++,系统无法执行指定的程序
- 在C++程序中输入的文本文件将不起作用,除非文本被复制和粘贴
- 在VS代码中交叉编译Windows与Linux上的MinGW的SDL程序
- 如何在 html 页面中插入 cgi 应用程序的输出?
- Luci 无法启动请求的 CGI 程序:/www/cgi-bin/sample.cgi:执行错误
- IIS不会运行C CGI程序
- CGI程序的自定义输出缓冲区,运算符重载
- C 程序运行为Apache CGI程序无法通过SHMGET访问共享存储器
- 如何使用Java发送HTTP GET,并使用用C++编写的CGI应用程序打印QUERY_STRING环境变量
- 让cgi应用程序始终在c++中运行
- 在 Apache 上运行一个 C++ CGI 程序
- 如何在CGI程序中使用UNIX套接字
- c++显示HTML代码作为一个网站(CGI程序)
- 从c++程序发送CGI请求
- CGI程序在调试模式下运行
- 如何在CGI应用程序中解析HTML文件并修改其内容?C++
- 运行基于编译的c++程序的Netbeans作为CGI给出权限错误
- 断开连接到cgi应用程序的客户端
- MySQL Connector c++ cgi程序是否像php一样容易受到MySQL注入的攻击?