Archive for the 'lighttpd' Category



lighttpd的泛域名设置

nginx的泛域名搞好了,再来Show Show以前使用的lighttpd的泛域名设置

实现的效果是
访问: http://www.lpfrx.com => 目录: /usr/www/lpfrx.com/www
访问: http://xxx.lpfrx.com => 目录: /usr/www/lpfrx.com/xxx
访问: http://www.dangbooknet.com => 目录: /usr/www/dangbooknet.com/xxx

/usr/www是我的web的起始目录

在server找到lighttpd的配置文件lighttpd.conf,
把”mod_evhost”这行的前边引号去掉,
然后

$HTTP["host"] =~”(.*)\.com” {
evhost.path-pattern = “/usr/www/%0/%3/”

}

这样lighttpd的泛域名设置就完成了

Tag:

wordpress在lighttpd的rewrite设置

一直都没有去理这个问题,今天在自己的家用web server进行了实验,

在google输入site:wordpress.org  lighttpd rewrite ,

这样就找到了,

代码

url.rewrite-once = (
   "^/(.*)?/?files/$" => "index.php",
   "^/(.*)?/?files/(.*)" => "wp-content/blogs.php?file=$2",
   "^/(wp-.*)$" => "$1",
   "^/([_0-9a-zA-Z-]+/)?(wp-.*)" => "$2",
   "^/([_0-9a-zA-Z-]+/)?(.*\.php)$" => "$2",
   "(\?.*)$" => "index.php$1",
   "." => "index.php"
  )

官方提供的,实验无误,记录

Tag:

在Debian编译lighttpd-1.4.19过程出现的错误处理

在Debian4自带安装的是lighttpd-1.4.13, 但在lighttpd网页看见了lighttpd-1.4.19稳定版当然用新的,于是自己下载下来自己编译,但都几多编译错误,先把这些编译过程出现的错误和处理方法记录下来,留待以后再遇到时作资料查询。

出现configure: error: C compiler cannot create executables … 安装apt-get install libc6-dev.

出现configure: error: configure: error: pcre-config not found … 安装apt-get install libpcre3-dev

Read the rest of this entry »

Tag:, , , ,