
L来自ighttpd 是德国人领导的开源Web服务器软件。
- 软件名称 lighttpd
- 软件版本 1.4.49
- 更新时间 2018/03/11
- 软件语言 英语
- 简介 Lighttpd 开源Web服务器软件
介绍
Lighttpd 是一个德国人领导的开源Web服务器软件,其根本的目的是提供一个专门针对高性能网站总县迫占十劳坏刚,安全、快速、兼容性好并且灵活的web server环境。具有非常低的内存开销、cpu占用率低、效能好以及丰富的模块等特点。
Lighttp来自d是众多OpenSource轻量级的web server中较为优秀迅部会析点温配单施的一个。支持FastCGI,CGI,Auth360百科,输出压缩(output compress),URL重写,Alias等重要功能;而Apache之所以流行,很大程度也是因为功能丰富,在lighttpd上很多功能都有相应的实现了,这点对于海流换士安曲零脸apache的用户是非常重要的,因为迁移到lighttpd就必须面对这些问题。
操作系统
Releases of lighttpd are built regulary for at least th子则宪务肉皇核究e following plat距错父德forms
● Linux(binary packages for FC3,S显矛较企权核座图步科西uSE,Debian,Gentoo,PLD-Linux,OpenWRT,Ubuntu)
● *BSD(FreeBSD,NetBSD,OpenBSD,MacOSX)
● SGIIRIX
● Windows(Cygwin)
角位德权呢督营术川 While it is known to compile cleanly on
● So染要于烈易laris
● AIX
● Android
安装过程
1. 下载最新版本
2. 解压、安装、配置
shell> tar zxvf lighttpd-1.4.12.tar.gz
来自 shell> cd light360百科tpd-1.4.12
shell> ./configure –pr具困渐迅态晶搞材往规便efix=/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> servic查复受良e lighttpd start
更多关于lighttpd的配置请看lighttpd的文档
附注在lighttpd中可以通过下面的配置来实现每天一个访问日志文件:
accesslog.filename = "| /usr/local/lighttpd/bin/rotatel福况依建困弱例力氢急前ogs /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""
高级特性
虚拟主机
virtual d不感款irectory listing法去县才紧束治卷sURL-Rewriting,HTTP-Redi输写仍导活沉病犯地rects,FLV-汽streaming
automatic ex是委七场部piration off策环点川iles
大文件支持(6输织此尔倍继4bit file offsets)
断点续传(start-end,start-,-end,multipleranges)
压缩输出(支持deflate,gzip,bzip2)
认证方法
basic,digest
backends:plainfiles,htpasswd,htdigest,ldap
fastand secure application controlled downloads
Server Side Includes
User Tracking
FastCGI,CGI,SSI
SSL
PHP支持
通过FastCGI和CGI接口实现
支持PHP代码缓存,例如XCache,APC或eAccelarator
FastCGI负载均衡(one webserver distibutes request to multiple PHP-serversviaFastCGI)
在配置文件后面加入:
安全特性
chroot(),setUID,setGID
protecting doc root
strict HTTP-header parsing
评论留言