httpServer lighttpd 1.4

lighttpd/1.4.19 商用列表

http://docs.huihoo.com/apache/tomcat/heavyz/  lighttpd/1.4.19


lighttpd docs

http://wiki.lighttpd.net/

http://192.168.100.99/server-status

http://192.168.100.99/server-statistics

[root@b2ccache conf.d]# service lighttpd      
Usage: /etc/init.d/lighttpd {start|stop|restart|condrestart|reload|status}

[root@b2ccache lighttpd]# man lighttpd
LIGHTTPD(8)                                                        LIGHTTPD(8)
NAME
       lighttpd - a fast, secure and flexible web server
SYNOPSIS
       lighttpd [-ptDvVh] -f configfile [-m moduledir]
DESCRIPTION
       lighttpd  (pronounced 'lighty') is an advanced HTTP daemon that aims to
       be secure, fast, compliant and very flexible.  It  has  been  optimized
       for high performance.  Its feature set includes, but is not limited to,
       FastCGI, CGI, basic and digest HTTP authentication, output compression,
       URL rewriting.
       This manual page only lists the command line arguments.  For details on
       how to configure lighttpd and its modules see the  files  in  the  doc-
       directory.
OPTIONS
       The following options are supported:
       -f  configfile
               Load configuration file configfile.
       -m  moduledir
               Use  moduledir  as the directory that contains modules, instead
               of the default.
       -p      Print the parsed configuration file in its  internal  form  and
               exit.
       -t      Test the configuration file for syntax errors and exit.
       -D      Do not daemonize (go into background). The default is to daemo-
               nize.
       -v      Show version and exit.
       -V      Show compile-time features and exit.
       -h      Show a brief help message and exit.
FILES
       /etc/lighttpd/lighttpd.conf
               The standard location for the configuration file.
       /var/run/lighttpd.pid
               The standard location for the PID of the running lighttpd  pro-
               cess.
SEE ALSO
       Online Documentation: http://wiki.lighttpd.net/
       spawn-fcgi(1)
       Hypertext Transfer Protocol -- HTTP/1.1, RFC 2616.
       HTTP  Authentication: Basic and Digest Access Authentication, RFC 2617.
       The Common Gateway Interface Version 1.1, RFC 3875.
       The FastCGI specification.
AUTHOR
       Jan Kneschke <jan@kneschke.de>
                                  2009-03-07                       LIGHTTPD(8)

[root@b2ccache conf.d]# which lighttpd
/usr/sbin/lighttpd

[root@b2ccache conf.d]# whereis lighttpd
lighttpd: /usr/sbin/lighttpd /etc/lighttpd /usr/share/man/man8/lighttpd.8.gz

[root@b2ccache sysconfig]# more /etc/sysconfig/lighttpd
LIGHTTPD_CONF_PATH=/etc/lighttpd/lighttpd.conf


Header信息

http://lindows.iteye.com

VaryAccept-Encoding
ETag"2282dfce7b0f082d91ac5af0dda0ba96"
X-Runtime616
Content-Typetext/html; charset=utf-8
Content-Length0
Content-Encodingdeflate
Set-Cookie_javaeye_cookie_id_=1309507039484319; do
main=iteye.com; path=/; expires=Tue, 01-
Jul-2014 07:57:19 GMT
Set-Cookie_javaeye3_session_=BAh7BjoPc2Vzc2lvbl9pZ
CIlNzc0ZjNhYjNjMmMyM2UwYmZjZjY0YmI3OWIwM
zk4NWU%3D--35a5755e16be4380b3da356ba895e
9b6716fb183; domain=.iteye.com; path=/;
HttpOnly
Cache-Controlprivate, max-age=0, must-revalidate
DateFri, 01 Jul 2011 07:57:20 GMT
Serverlighttpd/1.4.20


FTP资源 lighttpd/1.4.19 服务器

http://ubuntu:ubuntuftp@ftp.ubuntu.org.cn

http://www.lighttpd.net/download

lighttpd 安装

http://ferreousbox.iteye.com/blog/196212

用lighttpd加速SQUID

http://blog.quehy.com/archives/142.html

看到这个标题,大家也许会觉得奇怪:SQUID本身就是加速软件,lighttpd还怎么加速SQUID?

方法: 用lighttpd+mod_proxy 跑80 端口,指定后端proxy server是127.0.0.1:81,squid改到81端口。

lighttpd .conf 相关内容:

server.port = 80
proxy.server = ( "/" =>
(
( "host" => "127.0.0.1", "port" => 81 )
)
)
server.protocol-http11="disable"

原理更简单: lighttpd使用的writev和sendfile系统调用比squid用的write系统调用效率高很多。参考C10KScalable networking PDF 中关于writev,sendfile的说明。

实际效果呢:五台最高跑50M的squid server,换lighttpd+squid模式后,高峰长期跑满100M。

上图:周四下午改的的lighttpd+squid.
LIGHTTPD+SQUID


end

原文地址:https://www.cnblogs.com/lindows/p/14390581.html