运行goahead服务器后,把htm网页放在web目录中,.htm网页能正常运行,把cgi放入web目录中的cgi-bin中,用http://ip/cgi-bin/xx.cgi却提示:failed to spawn CGI task,如果用http://ip/cgi-bin提示:Missing CGI name 不知道是怎么回事.而且goahead的配置文件居然找不到,请高手指点.
我用的s3c2410的开发板,linux系统. 今天移植goahead webserver.发现一个大问题: 系统的主机名为(none),但/etc/hosts里面定义的是: 127.0.0.1 localhost localhost.localdomain 192.168.129.2 pda pda.localdomain 192.168.129.1 pc pc.localdomain 我用hostname命令查看,返回(none); 如果这样,我的webserver就没法运行了。应该web初始化的时候有这样的 code: if (gethostname(host, sizeof(host)) < 0) { error(E_L, E_L...
把htm网页放在web目录中,.htm网页能正常运行,把cgi放入web目录中的cgi-bin中,用http://ip/cgi-bin/xx.cgi却提示:failed to spawn CGI task,如果用http://ip/cgi-bin提示:Missing CGI name 不知道是怎么回事.而且goahead的配置文件居然找不到,请高手指点.
一、编译准备 1、运行如下命令 ln -s /usr/kerberos/include/com_err.h /usr/include/ ln -s /usr/kerberos/include/profile.h /usr/include/ ln -s /usr/kerberos/include/krb5.h /usr/include/ 2、修改Makefile SSLPATCHFILE = ../websSSL.o SSLINC = /usr/include/openssl SSLLIB = /usr/lib/libssl.a /usr/lib/libcrypto.a \ /usr/kerberos/lib/libkrb...