Nginx提供C ++ cgi脚本:响应是二进制格式
我试图在nginx上运行C ++ CGI脚本。我正在使用来自nginx网站的脚本的FCGIWrap。程序代码是这样的: #include <iostream> using namespace std; int main () { cout << "Content-type:text/html\n\n"; cout << "<html>\n"; cout << "<head>\n"; cout << "<title>Hello World - First CGI Program</title>\n"; cout << "</head>\n"; cout << "<body>\n"; cout << "<h2>Hello World! This is my first CGI program</h2>\n"; cout << "</body>\n"; cout << …