lighttpd支持AJAX吗,lighttpd

Lighttpd 是一个德国人领导的开源Web服务器软件。

软件名称

lighttpd

软件版本

1.4.49

更新时间

2018/03/11软件语言

英语

简    介

Lighttpd 开源Web服务器软件

操作系统

Linux/Windows/Android

lighttpd简介

编辑

语音

Lighttpd 是一个德国人领导的开源Web服务器软件,其根本的目的是提供一个专门针对高性能网站,安全、快速、兼容性好并且灵活的web server环境。具有非常低的内存开销、cpu占用率低、效能好以及丰富的模块等特点。

Lighttpd是众多OpenSource轻量级的web server中较为优秀的一个。支持FastCGI,CGI,Auth,输出压缩(output compress),URL重写,Alias等重要功能;而Apache之所以流行,很大程度也是因为功能丰富,在lighttpd上很多功能都有相应的实现了,这点对于apache的用户是非常重要的,因为迁移到lighttpd就必须面对这些问题。

lighttpd操作系统

编辑

语音

Releases of lighttpd are built regulary for at least the following platforms

● Linux(binary packages for FC3,SuSE,Debian,Gentoo,PLD-Linux,OpenWRT,Ubuntu)

● *BSD(FreeBSD,NetBSD,OpenBSD,MacOSX)

● SGIIRIX

● Windows(Cygwin)

While it is known to compile cleanly on

● Android

lighttpd安装过程

编辑

语音

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

lighttpd高级特性

编辑

语音

virtual directory listingsURL-Rewriting,HTTP-Redirects,FLV-streaming

automatic expiration offiles

大文件支持(64bit file offsets)

断点续传(start-end,start-,-end,multipleranges)

压缩输出(支持deflate,gzip,bzip2)

lighttpd认证方法

编辑

语音

basic,digest

backends:plainfiles,htpasswd,htdigest,ldap

fastand secure application controlled downloads

Server Side Includes

User Tracking

FastCGI,CGI,SSI

SSL

lighttpdPHP支持

编辑

语音

通过FastCGI和CGI接口实现

支持PHP代码缓存,例如XCache,APC或eAccelarator

FastCGI负载均衡(one webserver distibutes request to multiple PHP-serversviaFastCGI)

在配置文件后面加入:[1]

server.modules = (                   "mod_fastcgi",                 )fastcgi.server = ( ".php" => ((                     "bin-path" => "/usr/bin/php-cgi",                     "socket" => "/tmp/php.socket",                     "max-procs" => 2,                     "bin-environment" => (                       "PHP_FCGI_CHILDREN" => "16",                       "PHP_FCGI_MAX_REQUESTS" => "10000"                     ),                     "bin-copy-environment" => (                       "PATH", "SHELL", "USER"                     ),                     "broken-scriptfilename" => "enable"                 )))

lighttpd安全特性

编辑

语音

chroot(),setUID,setGID

protecting doc root

strict HTTP-header parsing

参考资料

1.

Lighttpd Wiki

.Lighttpd Wiki[引用日期2018-04-29]

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
当然,我可以帮你提供一些关于 lighttpd 的教程。lighttpd 是一个轻量级、快速的 Web 服务器,适用于处理高并发的静态和动态内容。以下是一个简单的 lighttpd 教程,帮助你入门: 1. 安装 lighttpd: - 在 Ubuntu 上,可以使用以下命令进行安装:`sudo apt-get install lighttpd` - 在 CentOS 上,可以使用以下命令进行安装:`sudo yum install lighttpd` 2. 配置 lighttpd: - 主要的配置文件是 `/etc/lighttpd/lighttpd.conf`,你可以使用编辑器打开该文件。 - 配置文件中的一些重要选项包括服务器端口、文档根目录、访问日志等。 - 你可以根据自己的需求进行配置,确保服务器能够工作正常。 3. 启动 lighttpd: - 在 Ubuntu 上,可以使用以下命令启动 lighttpd:`sudo service lighttpd start` - 在 CentOS 上,可以使用以下命令启动 lighttpd:`sudo systemctl start lighttpd` 4. 创建网站: - 默认情况下,lighttpd 的文档根目录位于 `/var/www/html`。 - 在该目录下创建一个简单的 HTML 文件,作为你的网站首页。 5. 测试网站: - 打开你的浏览器,输入服务器的 IP 地址或域名。 - 如果一切正常,你应该能够看到你创建的网站首页。 这只是一个简单的入门教程,帮助你开始使用 lighttpd。你可以进一步学习 lighttpd 的高级功能,例如虚拟主机配置、SSL/TLS 支持等。希望对你有所帮助!如果有任何问题,请随时提问。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值