采用proxy比使用fcgi的方式,来的容易一些。而且在windows上这是唯一的方式。
在proxy的时候,只需要加上一条rewrite rule就可以将所有静态文件交由Lighttpd直接处理。
以下为lighttpd+mongrel的配置文件,本配置将所有swf,js,css,jpg等静态文件交由Lighttpd处理
server.modules = (
"mod_rewrite",
"mod_redirect",
"mod_fastcgi",
"mod_proxy",
"mod_accesslog" )
server.document-root = "C:/lighttpd/htdocs"
## where to send error-messages to
server.errorlog = "C:/lighttpd/logs/lighttpd.error.log"
# files to check for if .../ is requested
server.indexfiles = ( "index.php", "index.html",
"index.htm", "default.htm" )
accesslog.filename = "C:/lighttpd/logs/lighttpd.access.log"
index-file.names = ( "index.php", "index.html",
"index.htm", "default.htm" )
$HTTP["host"] == "iff" {
server.document-root = "D:/dev/iff/public"
$HTTP["url"] !~ "\.(gif|jpg|png|txt|html|css|js|swf)$" {
proxy.server = ( "/" => (
( "host" => "127.0.0.1", "port" => 3000 )
) )
}
}
分享到:
相关推荐
包括lighttpd.conf配置文件以及用于控制web server启动和停止的脚本。
varnish+lighttpd配置
详细介绍了lighttpd 安装与配置。
lighttpd简单配置,希望对新手同志有用!!!
里面包含了lighttpd启动程序,lighttpd配置模板以及一个控制lighttpd启动和关闭的脚本。
在Linux上安装Lighttpd,里面有遇到的一些问题的解决方法,整个安装流程,还有参考网站
lighttpd轻量级的HTTP服务器,全面支持fast-cgi
交叉编译最新版的lighttpd-1.4.55,配置与测试CGI与HTML.内含 lighttpd-1.4.55源码,移植教程,cgi测试代码,html测试代码.测试cgi时,浏览器中应该输入192.168.100.30/cgi-bin/xx.cgi .其中 192.168.100.30为开发板的ip
lighttpd.conf,可以直接使用。带注释。网上搜索的资料,自己加的。可能有人觉得没什么用╮(╯_╰)╭。分享
NULL 博文链接:https://yeahoo.iteye.com/blog/319066
Lighttpd是一个德国人领导的开源软件,其根本的目的是提供一个专门针对高性能网站,安全、快速、兼容性好并且灵活的web server环境。具有非常低的内存开销,cpu占用率低,效能好,以及丰富的模块等特点。lighttpd是...
主要内容包括:lighttpd介绍与分析准备工作、lighttpd网络服务主模型、lighttpd数据结构、伸展树、日志系统、文件状态缓存器、配置信息加载、i/o多路复用技术模型、插件链、网络请求服务响应流程、请求响应数据快速...
3、首先配置lighttpd.conf 修改为自己的工作路径 var.server_root = "/home/caoft/lighttpd/lighttpd_websocket/http_server" var.state_dir = "/home/caoft/lighttpd/lighttpd_websocket/http_server" var.home_dir...
学习心得,分享出来供大家学习。docker镜像构建,中间件mysql、lighttpd、Nginx、squid配置和启动、dubbo服务部署
网上收集的关于lighttpd代码分析的文章,内容不多。
lighttpd-1.4.20.tar lighttpd-1.4.20.tar
startLighttp.vbs 为一键启动lighttpd和php-cgi的启动脚本,php使用fastcgi host:port形式 test_cgi.cmd 为测试cgi传参数用(如果发现php程序返回No input file specified.说明server.document-root这个目录配置的有...
资源名称:Lighttpd源码分析内容简介: 作为最为优秀的轻量级Web Server之一,Lighttpd有着众多的忠实拥护者和使用者。Lighttpd源码分析就是一本介绍分析Lighttpd源码的初级读本,其主要目标在于:一方面让已经接触...
startLighttp.vbs 为一键启动lighttpd和php-cgi的启动脚本,php使用fastcgi host:port形式 test_cgi.cmd 为测试cgi传参数用(如果发现php程序返回No input file specified.说明server.document-root这个目录配置的有...
lighttpd 流程分析工作模式,帮助理解lighttpd