modify the libhttpd.c, add the next lines: (void) my_snprintf(buf, sizeof(buf), "%s%s", hc->hs->cwd, strcmp( hc->origfilename, "." ) == 0 ? "" : hc->origfilename ); envp[envn++] = build_env("SCRIPT_FILENAME=%s", buf); php-cgi need environment variable SCRIPT_FILENAME to execute the script with the absolute name. php-cgi will print "No input file specified" if it did not find the environment variab...
前些时候把thttpd+ssl+php 整合到一起了。正好CU上有人问如何整合thttpd+ssl, 现在把我整合的文件一起传上来,包中php_thttpd.c.1 就是改后的php_thttpd.c , 原来是php 5.0.4生成的一个连接。 由于每个人整合的php 版本不一样,所以未使用 diff, 直接打包了修改的几个文件。 整合过程就是写个ssl_api.c ssl_api.h 包含了ssl初始化,bind,read,write,readv writev 等实现, 替代thttpd 中的相应处理。 如果不需要php, 可以使用此方法...
系统在linux下启动后,thttpd运行正常,可是隔一段时间,发现thttpd的进程不见了(ps 看不到了)。不知道哪里会对这个有影响?期待有对此比较熟悉的大虾给小弟指点一二。 多谢了。
freeBSD 4.8 release 下用port安装过thttpd,后来删除了,重新安装apache,在httpd.conf 中DocumentRoot "/usr/local/apache/htdocs" 在/usr/local/apache/htdocs中存在index.html网页, 为何在浏览器中输入http://192.168.0.1 显示: Index of / mode links bytes last-changed name -------------------------------------------------------------------------------- dr-x 2 512 Jul 18 18:35 ./ dr-x 26 ...
我看了这个WEB服务器, 就是很难搞懂整个流程, 到网上找了许多资料都没说多详细, 希望大家能给点帮助, 我不知大家是怎看的, 都看懂了吗, 我看得 没头绪了, 不知怎办, 希望能帮帮我, 哪有整个流程, 讲得更详细点, 里面函数调用有的时候都不太懂, 看过的人感受说说也行, 应怎去看这个代码.
环境:AT91SAM9263-EK + arm-linux-gcc 4.0.0 下载:从 http://www.acme.com/software/thttpd/ 下载thttpd 编译thttpd ./configure --host=arm-linux 修改 Makefile、cgi-src/Makefile、extras/Makfile中的CC选项为arm-linux-gcc; 可以在当前目录下的Makefile指定静态链接二进制文件LDFLAGS = static,但是文件会很大,建议先试试动态链接; 开始make,由于是在PC机上交叉编译的,所以不需要make install,将thttpd、thttp.conf...
我的thttpd是2.25版本的,按照man中的说明,我在thttpd.conf配置文件中添加了禁用页面缓存的配置:max_age=0,可是配置之后,禁用页面缓存没有起作用。我在html中添加禁用页面缓存的配置: 添加之后禁用页面缓存也没有起作用。最后采用随机数的办法禁止页面缓存,可是每刷新一次,就会生成一个新的页面,缓存文件就更多了。不知谁...