Lighttpd 相关

------------------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!!



(未完待续)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值