linux下的 lighttpd 与框架 thinkp…

来源:互联网 发布:java web小型购物网站 编辑:程序博客网 时间:2024/04/29 14:10
首先修改lighttpd.conf文件
打开mod_rewrite前的#号注释
然后配置内加入
url.rewrite-once  = (
       "^/index.php(.*)$"                    => "/index.php/$1",
       "^/Public/(.*)$"                      => "/Public/$1",
      "^/Share/(.*)$"                       => "/Share/$1",
      "^/(.*)$"                             => "/index.php/$1",
)
这样tp框架就可以打开

如果使用官方的rpm包安装的,需要重新编译lighttpd
需要先安装pcre
配置两个变量LIB以及CPPFLGS值 根据pcre-config 输出结果配置
然后再configure lighttpd的包
make
make install
阅读全文
0 0