标签类目:Lighttpd

Lighttpd 虚拟主机和多域名的配置

分类:Lighttpd Lighttpd也是一款轻巧不错的web服务器,和apachehttpserver一样,我最开始用lighttpd是在07年的时候,刚好lighttpd支持flv的流媒体播放和防盗链功能,所以就要用了起来。今天这里着重讲下如何配置多个虚拟主机和域名的设置,以Lighttpd的V1.7版本为例:

1、配置多个虚拟主机
打开Lighttpd安装目录下的etc/lighttpd.conf文件,在最后添加如下段:

$HTTP["host"] == "www.linuxany.com" {
    server.document-root = "/webapps/linuxany/website"
    server.errorlog = "/usr/local/lighttpd/logs/linuxany.com-error.log"
    accesslog.filename = "/usr/local/lighttpd/logs/linuxany.com-access.log"}

如果需要多个虚拟主机,则将上面的段复制设置多个即可。

继续阅读 »

Lighttpd Debian package available in Etch

分类:DebianLighttpd is a small and fast webserver developed with security in mind and a lot of features. Until recently Debian packages were available only in the unstable release, but now they have been included in Debian Etch (testing) and will most certainly make it to the next stable Debian release (etch is scheduled to be released in December).

Myself I have been using Lighty for a while, either compiled from sources or using the unstable debian package that worked very well for me without any special problems. Though I am using it only to serve static content (images mainly) and not use any other special features. In this case lighttpd outperforms apache in my experiences by far in performance (requests / second) and also resources utilizations (CPU and memory).
继续阅读 »

lighttpd rewrite rules for WordPress permalink

分类:Lighttpd先前由於把 Apache 換成 Lighttpd, 忘記還有 permalink 這東西, 所以 WordPress 的 permalink 就掛點了。lighttpd 的 rewrite 好像沒有可以判斷檔案不在才做 rewrite 的條件, 又由於對 lighttpd 不熟, 只好在網路上找, 不過找到有些 rewrite rules 都嘛有問題, 所以參考一些找到的 rewrite rules, 然後修改成下面這樣 :p 继续阅读 »

lighttpd simple-vhost 設定

分类:Lighttpd首先設定 server.modules 打開 mod_simple_vhost, 我的 server.modules 大概像這樣

server.modules = (  
    “mod_rewrite”,  
    “mod_access”,  
    “mod_auth”,  
    “mod_status”,  
    “mod_simple_vhost”,  
    “mod_compress”,  
)   继续阅读 »

lighttpd 安裝教程

分类:Lighttpd

  • 安裝 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 & mysql 的環境 继续阅读 »

用 lighttpd 建立 FLV 影片網站

分类:Lighttpd

  • 影片轉 FLV 檔, 並製作影片截圖
  • 在 lighttpd web server 使用加密網址, 隱藏實際影片路徑
  • 免費的 Flash FLV Player 继续阅读 »

搭建一个轻量级服务器环境 LIGHTTPD + MYSQL + PHP(FAST-CGI)

分类:LighttpdLighttp是一个新兴的安全,高效,兼容性都非常好的WEB服务器软件。相对APACHE来说lighttpd的显著特点是:非常低的内存占用,非常快的相应速度。今天我在LINUX上配置了一下感觉的确不错,在这里和大家分享一下。安装lighttpd前需要预装下列软件包:
继续阅读 »


返回顶部