<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ubuntu,debian,redhat -linuxany.com &#187; Lighttpd</title>
	<atom:link href="http://www.linuxany.com/archives/category/application/lighttpd/feed" rel="self" type="application/rss+xml" />
	<link>http://www.linuxany.com</link>
	<description></description>
	<lastBuildDate>Thu, 26 Jan 2012 08:59:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Lighttpd 虚拟主机和多域名的配置</title>
		<link>http://www.linuxany.com/archives/1516.html</link>
		<comments>http://www.linuxany.com/archives/1516.html#comments</comments>
		<pubDate>Mon, 28 Mar 2011 09:14:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Lighttpd]]></category>
		<category><![CDATA[domain]]></category>
		<category><![CDATA[host]]></category>
		<category><![CDATA[http]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://www.linuxany.com/?p=1516</guid>
		<description><![CDATA[Lighttpd也是一款轻巧不错的web服务器，和apachehttpserver一样，我最开始用lighttpd是在07年的时候，刚好lighttpd支持flv的流媒体播放和防盗链功能，所以就要用了起来。今天这里着重讲下如何配置多个虚拟主机和域名的设置，以Lighttpd的V1.7版本为例： 1、配置多个虚拟主机 打开Lighttpd安装目录下的etc/lighttpd.conf文件，在最后添加如下段： $HTTP[&#34;host&#34;] == &#34;www.linuxany.com&#34; {&#160;&#160; &#160;server.document-root = &#34;/webapps/linuxany/website&#34;&#160;&#160; &#160;server.errorlog = &#34;/usr/local/lighttpd/logs/linuxany.com-error.log&#34;&#160;&#160; &#160;accesslog.filename = &#34;/usr/local/lighttpd/logs/linuxany.com-access.log&#34;} 如果需要多个虚拟主机，则将上面的段复制设置多个即可。 2、多域名指向同一个目录 有时候我们需要将同一个应用配置多个域名，这时我们就可以采用下面的段来进行配置： $HTTP[&#34;host&#34;] =~ &#34;^(python\.linuxany\.com&#124;perl\.linuxany\.com)$&#34; {&#160;&#160; &#160;server.document-root = &#34;/linuxany/program/app&#34;&#160;&#160; &#160;server.errorlog = &#34;/usr/local/lighttpd/logs/linuxany-app-error.log&#34;&#160;&#160; &#160;accesslog.filename = &#34;/usr/local/lighttpd/logs/linuxany-app-access.log&#34;} 注意这个与单个域名配置不同的是：前者使用的是==，而后者使用的是=~这样，这样我们就完成了一个应用多个域名的配置了，然后重启lightpd即可。 3、多个域名跳转到同一个域名，可带路径 $HTTP[&#34;host&#34;] =~ &#34;^(python\.linuxany\.com&#124;perl\.linuxany\.com&#124;php\.linuxany\.com)$&#34; {&#160;&#160; &#160; &#160; url.redirect = ( &#34;^/(.*)&#34; =&#62; &#34;http://www.linuxany.com/$1&#34; )} 您还可能感兴趣的内容Nginx concat模块减轻http请求连接数Nginx 让浏览器告诉你负载均衡分到了哪台服务器Python 进行DNS解析监控Python 抓包获取网卡字节流Nginx proxy_pass到$host的问题与解决方法]]></description>
		<wfw:commentRss>http://www.linuxany.com/archives/1516.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>三大WEB服务器对比分析（apache ,lighttpd,nginx）</title>
		<link>http://www.linuxany.com/archives/1368.html</link>
		<comments>http://www.linuxany.com/archives/1368.html#comments</comments>
		<pubDate>Fri, 01 Oct 2010 11:23:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Lighttpd]]></category>

		<guid isPermaLink="false">http://www.linuxany.com/?p=1368</guid>
		<description><![CDATA[在相对大 的网站，节约下来的服务器成本无疑是客观的。而有些小型网站往往服务器不多，如果采用 Apache 这类传统 Web 服务器，似乎也还能撑 过去。但有其很明显的弊端： Apache 在处理流量爆发的时候(比如爬虫或者是 Digg 效应) 很容易过载，这样的情况下采用 Nginx 最为合适。 建议方案： Apache 后台服务器（主要处理php及一些功能请求 如：中文url） Nginx  前端服务器（利用它占用系统资源少得优势来处理静态页面 大量请求） Lighttpd 图片服务器 总体来说，随着nginx功能得完善将使他成为今后web server得主流。 3种WEB服务器的比较： server Apache Nginx Lighttpd Proxy代理 非常好 非常好 一般 Rewriter 好 非常好 一般 Fcgi 不好 好 非常好 热部署 不支持 支持 不支持 系统压力比较 很大 很小 比较小 稳定性 好 非常好 不好 安全性 [...]]]></description>
		<wfw:commentRss>http://www.linuxany.com/archives/1368.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>lighttpd rewrite rules for WordPress permalink</title>
		<link>http://www.linuxany.com/archives/206.html</link>
		<comments>http://www.linuxany.com/archives/206.html#comments</comments>
		<pubDate>Wed, 13 Feb 2008 16:12:19 +0000</pubDate>
		<dc:creator>x72</dc:creator>
				<category><![CDATA[Lighttpd]]></category>

		<guid isPermaLink="false">http://www.linuxplay.cn/index.php/archives/207</guid>
		<description><![CDATA[先前由於把 Apache 換成 Lighttpd, 忘記還有 permalink 這東西, 所以 WordPress 的 permalink 就掛點了。lighttpd 的 rewrite 好像沒有可以判斷檔案不在才做 rewrite 的條件, 又由於對 lighttpd 不熟, 只好在網路上找, 不過找到有些 rewrite rules 都嘛有問題, 所以參考一些找到的 rewrite rules, 然後修改成下面這樣 :p url.rewrite = (       “^/blog/?$” =&#62; “/blog/index.php”,       “^/blog/(\?.*)$” =&#62; “/blog/index.php$1&#8243;,       “^/blog/(wp-.+)$” =&#62; “$0&#8243;,       “^/blog/([^.]+)/?$” =&#62; “/blog/index.php?$1&#8243;,   )     update: 用了好多天才知道, 這個 rewrite [...]]]></description>
		<wfw:commentRss>http://www.linuxany.com/archives/206.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>lighttpd simple-vhost 設定</title>
		<link>http://www.linuxany.com/archives/205.html</link>
		<comments>http://www.linuxany.com/archives/205.html#comments</comments>
		<pubDate>Wed, 13 Feb 2008 15:34:03 +0000</pubDate>
		<dc:creator>x72</dc:creator>
				<category><![CDATA[Lighttpd]]></category>

		<guid isPermaLink="false">http://www.linuxplay.cn/index.php/archives/206</guid>
		<description><![CDATA[首先設定 server.modules 打開 mod_simple_vhost, 我的 server.modules 大概像這樣 server.modules = (       “mod_rewrite”,       “mod_access”,       “mod_auth”,       “mod_status”,       “mod_simple_vhost”,       “mod_compress”,   )   server.modules = (     “mod_rewrite”,     “mod_access”,     “mod_auth”,     “mod_status”,     “mod_simple_vhost”,     “mod_compress”, )   然後設定下面這幾行, 就好了 :o simple-vhost.server-root   = “/var/www/”  simple-vhost.default-host  = “tzangms.com”  simple-vhost.document-root = “htdocs”  simple-vhost.server-root   = “/var/www/” [...]]]></description>
		<wfw:commentRss>http://www.linuxany.com/archives/205.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>lighttpd 安裝教程</title>
		<link>http://www.linuxany.com/archives/176.html</link>
		<comments>http://www.linuxany.com/archives/176.html#comments</comments>
		<pubDate>Sun, 03 Feb 2008 16:20:51 +0000</pubDate>
		<dc:creator>x72</dc:creator>
				<category><![CDATA[Lighttpd]]></category>

		<guid isPermaLink="false">http://www.linuxplay.cn/index.php/archives/177</guid>
		<description><![CDATA[安裝 PHP as FastCGI 安裝 lighttpd Web Server PHP extensions 安裝備忘 eAccelerator: PHP 加速器 htscanner: .htaccess 的 PHP 應用 操作環境 Fedora Core 3 Linux yum install httpd mysql mysql-server mysql-devel 模擬已裝有 apache http server &#38; mysql 的環境 安裝 PHP as FastCGI 需求套件: flex, mysql-devel wget http://tw2.php.net/get/php-4.4.6.tar.bz2/from/tw.php.net/mirror tar jxf php-4.4.6.tar.gz2 cd php-4.4.6 ./configure \     &#8211;prefix=/usr/local/php-fcgi [...]]]></description>
		<wfw:commentRss>http://www.linuxany.com/archives/176.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>用 lighttpd 建立 FLV 影片網站</title>
		<link>http://www.linuxany.com/archives/171.html</link>
		<comments>http://www.linuxany.com/archives/171.html#comments</comments>
		<pubDate>Sun, 03 Feb 2008 07:20:58 +0000</pubDate>
		<dc:creator>x72</dc:creator>
				<category><![CDATA[Lighttpd]]></category>
		<category><![CDATA[flv]]></category>

		<guid isPermaLink="false">http://www.linuxplay.cn/index.php/archives/172</guid>
		<description><![CDATA[影片轉 FLV 檔, 並製作影片截圖 在 lighttpd web server 使用加密網址, 隱藏實際影片路徑 免費的 Flash FLV Player 影片轉檔 安裝 ffmpeg 安裝 flvtool2 影片轉 FLV 檔 ffmpeg -i myvideo.wmv -s 320&#215;240 -r 15 -b 128k -ar 22050 -ab 32k -ac 2 -f flv myvideo.flv 參數說明 -i input file name -s set video frame size -r set video frame rate [...]]]></description>
		<wfw:commentRss>http://www.linuxany.com/archives/171.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>搭建一个轻量级服务器环境 LIGHTTPD + MYSQL + PHP(FAST-CGI)</title>
		<link>http://www.linuxany.com/archives/170.html</link>
		<comments>http://www.linuxany.com/archives/170.html#comments</comments>
		<pubDate>Sun, 03 Feb 2008 07:13:17 +0000</pubDate>
		<dc:creator>x72</dc:creator>
				<category><![CDATA[Lighttpd]]></category>

		<guid isPermaLink="false">http://www.linuxplay.cn/index.php/archives/171</guid>
		<description><![CDATA[Lighttp是一个新兴的安全，高效，兼容性都非常好的WEB服务器软件。相对APACHE来说lighttpd的显著特点是：非常低的内存占用，非常快的相应速度。今天我在LINUX上配置了一下感觉的确不错，在这里和大家分享一下。安装lighttpd前需要预装下列软件包： pcre zlib pcre-devel zlib-devel 1.安装配置lighttpd 1.1 首先创建运行lighttpd的用户和组 # groupadd lighttpd # useradd -g lighttpd -s /sbin/nologin -d /dev/null lighttpd 1.2 开始安装lighttpd # wget http://www.lighttpd.net/download/lighttpd-1.4.8.tar.gz # tar -zxvf lighttpd-1.4.8.tar.gz # cd lighttpd-1.4.8 # ./configure &#8211;prefix=/usr/local/lighttpd # make # make install # mkdir /usr/local/lighttpd/conf # mkdir /usr/local/lighttpd/log # mv ./doc/lighttpd.conf /usr/local/lighttpd/conf/ # cp ./doc/rc.lighttpd.redhat /etc/init.d/lighttpd 1.3 配置lighttpd # vi /usr/local/lighttpd/conf/lighttpd.conf ================+===============+================ server.modules         = (                     ”mod_rewrite”,                     ”mod_redirect”,                     ”mod_access”,                     ”mod_fastcgi”,                     ”mod_compress”,                     ”mod_accesslog” ) #$HTTP["url"] =~ ”\.pdf$” { #server.range-requests = ”disable” #} server.document-root = ”/usr/local/lighttpd/html” server.errorlog = ”/usr/local/lighttpd/log/lighttpd.error.log” accesslog.filename = ”/usr/local/lighttpd/log/access.log” server.pid-file         = ”/var/run/lighttpd.pid” server.username = ”lighttpd” server.groupname = ”lighttpd” compress.cache-dir       = ”/tmp” compress.filetype       = (“text/plain”, ”text/html”) fastcgi.server         = ( ”.php” =&#62;                     ( ”localhost” =&#62;                     (                       ”socket” =&#62; ”/tmp/php-fastcgi.socket”,                       ”bin-path” =&#62; ”/usr/local/php-fcgi/bin/php”                       )                     )                   ) ================+===============+================ # cp ./doc/spawn-php.sh /usr/local/lighttpd/bin/ # chown -R lighttpd:lighttpd /usr/local/lighttpd 2．安装配置MYSQL服务器 # yum install mysql-server # yum install mysql [...]]]></description>
		<wfw:commentRss>http://www.linuxany.com/archives/170.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

