lighttpd

Admin in 百科 2024-04-15 10:22:01

lighttpd
  目录
  1简介
  2操作系统
  3协议不兼容性
  4安装过程
  5高级特性
  6认证方法
  7PHP支持
  8安全特性
  9版本发布
  1简介
  Lighttpd 是一个德国人领导的开源Web服务器软件,其根本的目的是提供一个专门针对高性能网站,安全、快速、兼容性好并且灵活的web server环境。具有非常低的内存开销、cpu占用率低、效能好以及丰富的模块等特点。
  Lighttpd是众多OpenSource轻量级的web server中较为优秀的一个。支持FastCGI,CGI,Auth,输出压缩(output compress),URL重写,Alias等重要功能;而Apache之所以流行,很大程度也是因为功能丰富,在lighttpd上很多功能都有相应的实现了,这点对于apache的用户是非常重要的,因为迁移到lighttpd就必须面对这些问题。
  2操作系统
  Releases of lighttpd are built regulary for at least the following platforms
  ● Linux(binary packages for FC3,SuSE,Debian,Gentoo,PLD-Linux,OpenWRT)
  ● *BSD(FreeBSD,NetBSD,OpenBSD,MacOSX)
  ● SGIIRIX
  ● Windows(Cygwin)
  While it is known to compile cleanly on
  ● Solaris
  ● AIX
  3协议不兼容性
  不支持Transfer-Encoding:chunked
  4安装过程
  1. 下载最新版本
  2. 解压、安装、配置
  shell> tar zxvf lighttpd-1.4.12.tar.gz
  shell> cd lighttpd-1.4.12
  shell> ./configure –prefix=/usr/local/lighttpd
  shell> ./make
  shell> ./make install
  shell> cp doc/rc.lighttpd.redhat /etc/rc.d/init.d/lighttpd
  shell> cp doc/sysconfig.lighttpd /etc/sysconfig/lighttpd
  shell> mkdir /etc/lighttpd
  shell> cp doc/lighttpd.conf /etc/lighttpd/lighttpd.conf
  shell> chkconfig lighttpd on
  接下来打开/etc/rc.d/init.d/lighttpd修改lighttpd的值如下
  lighttpd=”/usr/local/lighttpd/sbin/lighttpd”
  打开/etc/lighttpd/lighttpd.conf修改服务的端口,以及文档根目录的路径后启动lighttpd服务
  shell> service lighttpd start
  更多关于lighttpd的配置请看lighttpd的文档
  附注在lighttpd中可以通过下面的配置来实现每天一个访问日志文件:
  accesslog.filename = “| /usr/local/lighttpd/bin/rotatelogs /usr/local/lighttpd/logs/access_%Y%m%d.log 86400″
  其中rotatelogs直接从apache的bin目录拷贝过来即可。
  配置日志记录格式:
  accesslog.format = "%h %l %u %t "%r" 200 %b "%{Referer}i" "%{User-Agent}i""
  5高级特性
  编辑
  虚拟主机
  virtual directory listingsURL-Rewriting,HTTP-Redirects
  automatic expiration offiles
  大文件支持(64bit file offsets)
  断点续传(start-end,start-,-end,multipleranges)
  压缩输出(支持deflate,gzip,bzip2)
  6认证方法
  basic,digest
  backends:plainfiles,htpasswd,htdigest,ldap
  fastand secure application controlled downloads
  Server Side Includes
  User Tracking
  FastCGI,CGI,SSI
  SSL
  7PHP支持
  same speed as or faster than apache+mod_php4
  includes a utility to spawn FastCGI processes(neccesaryforPHP4.3.x)
  通过FastCGI和CGI接口实现
  支持PHP代码缓存,例如XCache,APC或eAccelarator
  FastCGI负载均衡(one webserver distibutes request to multiple PHP-serversviaFastCGI)
  8安全特性
  chroot(),setUID,setGID
  protecting doc root
  strict HTTP-header parsing
  9版本发布
  2010年08月23日,lighttpd 1.4.28 发布。
  2011年07月04日,Lighttpd 1.4.29 发布。
  2011年12月19日,Lighttpd 1.4.30 发布。
  2012年06月01日,Lighttpd 1.4.31 发布,高性能Web服务器。
  2012年11月21日,Lighttpd 1.4.32 发布,高性能Web服务器。

免责声明:本站文字信息和图片素材来源于互联网,仅用于学习参考,如内容侵权与违规,请联系我们进行删除,我们将在三个工作日内处理。联系邮箱:chuangshanghai#qq.com(把#换成@)

-- End --