免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4573 | 回复: 0
打印 上一主题 下一主题

502 Bad Gateway The CGI was not CGI/1.1 compliant. [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-02-15 12:34 |只看该作者 |倒序浏览
系统:linux fordra 7.0
boa位置:   ./boa -c /home/yen/boa

  1. #define SERVER_NAME "www.bxmon.com"
  2. #define SAVED_ENVIRONMENT "/tmp/cgicsave.env"

  3. #include <stdio.h>
  4. #include <cgic.h>
  5. #include <string.h>
  6. #include <unistd.h>
  7. #define  CFGFILE "/home/yen/netbk/netbk.conf"

  8. int cgiMain() {
  9.        char pwdstr[32],tmp[128],a[32],b[32],*p;
  10.        FILE *fp;

  11.        cgiFormStringNoNewlines("logpwd",pwdstr,64);
  12.         /* Send the content type, letting the browser know this is HTML */
  13.         cgiHeaderContentType("text/html");

  14.            fprintf(cgiOut, "<html><title>Netbk</title>\n");
  15.            fprintf(cgiOut,"<frameset cols=20%,*>\n");
  16.            fprintf(cgiOut,"<frame src=menu.html noresize=noresize >\n");
  17.            fprintf(cgiOut,"<frame src=netconf.html name=showframe />\n");
  18.            fprintf(cgiOut,"</frameset></html>");

  19. }
复制代码




windows:  浏览器运行:http://192.168.0.2:1080
错误提示:502 Bad Gateway
The CGI was not CGI/1.1 compliant.


不知道是什么原因。请各位赐教。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP