nginx一个fastcgi的demo错误
来源:互联网 发布:淘宝网页登陆 编辑:程序博客网 时间:2024/05/16 12:23
2016/03/23 18:29:22 [error] 3556#0: *6 upstream prematurely closed FastCGI stdout while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "GET /main.cgi HTTP/1.1", upstream: "fastcgi://127.0.0.1:8081", host: "127.0.0.1".
一直都是OK 的,突然改了一下代码就乱了,实在不明白,检查了半天,才发现,原来我把 HTTP头输出给屏蔽掉了,也是醉了
n = sprintf(sendline,"Content-type: text/html\r\n"
"\r\n"
"<title>FastCGI Hello!</title>"
"<h1>FastCGI Hello!</h1>"
"Request number %d running on host <i>%s</i>\n",
++count, getenv("SERVER_NAME"));
printf("%s",sendline);
一定要先输出头,否则nginx会直接屏蔽
0 0
- nginx一个fastcgi的demo错误
- nginx fastcgi 自定义错误页面
- Nginx + FastCGI 程序(C/C++) 搭建高性能web service的Demo及部署发布
- Nginx + FastCGI 程序(C/C++)搭建高性能web service的demo
- Nginx + FastCGI 程序(C/C++) 搭建高性能web service的Demo及部署发布
- Nginx + FastCGI 程序(C/C++) 搭建高性能web service的Demo及部署发布
- nginx FastCGI错误Primary script unknown解决办法
- nginx FastCGI错误Primary script unknown解决办法
- NginX中FastCGI的配置
- 简单的nginx fastcgi配置
- nginx的fastcgi配置信息
- nginx中配置php fastcgi组解决莫名其妙的502 Bad Gateway错误
- 解决Nginx + PHP(FastCGI)遇到的502 Bad Gateway错误
- nginx/FastCGI
- 【入门篇】Nginx + FastCGI 程序(C/C++) 搭建高性能web service的Demo及部署发布
- 【入门篇】Nginx + FastCGI 程序(C/C++) 搭建高性能web service的Demo及部署发布
- 【入门篇】Nginx + FastCGI 程序(C/C++) 搭建高性能web service的Demo及部署发布
- 【入门篇】Nginx + FastCGI 程序(C/C++) 搭建高性能web service的Demo及部署发布
- java线程死锁问题
- Ajax学习笔记
- Biorhythms
- 常用的Git代码托管平台
- HashSet,TreeSet和LinkedHashSet的区别
- nginx一个fastcgi的demo错误
- Android Fragment 真正的完全解析(上)
- PAT (Advanced Level) Practise 1074 Reversing Linked List (25)
- android 之View 一
- Python版shadowsocks服务优化和开机启动
- 第4周项目5 (1)用递归方法求解
- 代码片段的备份
- markdown 简明语法
- Win32窗口程序实例