------------------7/2-----------------
1,以下是 lighttpd 维基百科上贴出的 lighttpd 的特色,可以有针对的研究一下。
2,lighttpd 中文网 有几篇分析源码的文章写的不错,有空也是要好好看看的。
* 提供FastCGI及SCGI的负载平衡
* 支援chroot
* 支援select()/poll()及更有效率的kqueue/epoll连线状态判断
* 支援条件重写(Conditional rewrites)
* 支援SSL连线
* 透过LDAP server认证
* rrdtool状态输出
* Rule-based downloading
* Server-side includes support
* Virtual hosting
* Modules support
* Cache Meta Language
* Minimal WebDAV support
* Servlet (AJP) support(1.5.x版后)
------------------7/1-----------------
1, ubuntu 下安装 lighttpd 非常快捷方便,直接使用
apt-get install 即可
2, 配置文件: /etc/lighttpd/lighttpd.conf, 当然也可以放在其他地方,通过 -f 选项加载
3, 使用cgi的时候
$ php-cgi -v
报出一堆的 warning:
后来才发现,php-cgi 加载的是 /etc/php5/cgi/php.ini这个配置文件,修改其中的配置即可。
4, fastcgi confi
i see somewhere say,
1> , user need to edit /etc/lighttpd/lighttpd.conf and add ' include mod_fastcgi.conf'.
2> , in the file /etc/lighttpd/mod_fastcgi.conf
But, it throw an error while i restart the lighttpd:
so, we can find the line below in the lighttpd.conf
the config file /etc/lighttpd/conf-enabled/10-fastcgi.conf is for fastcgi module.
Note: so if u need to support fastcgi, u just need to
> 1, sudo lighty-enable-mod fastcgi
> 2, restart the lighttpd
that is all!!
(未完待续)