Lighttpd安装及secdownload,fastcgi,proxy配置(2)


secdownload防盗链模块配置主文件
[root@localhost etc]# cat conf.d/secdownload.conf |grep -v ^# | grep -v ^$
server.modules += ( "mod_secdownload" )
secdownload.document-root = server_root + "/music"
secdownload.secret = "Tgn.com"
secdownload.timeout = 60
secdownload.uri-prefix = "/mp3/"


PHP fastcgi配置主文件
[root@localhost etc]# cat conf.d/fastcgi.conf |grep -v ^# | grep -v ^$
server.modules += ( "mod_fastcgi" )
fastcgi.server = ( ".php" =>
                  ( "php-tcp" =>
                    (
                      "host" => "127.0.0.1",
                      "port" => 9000,
                      "check-local" => "disable",
                      "broken-scriptfilename" => "enable",
                    )
                  ),
              )

8,根据配置建立日志及其它目录
[root@localhost lighttpd]# mkdir -p var/log
[root@localhost lighttpd]# mkdir -p var/run
[root@localhost lighttpd]# mkdir -p var/cache
[root@localhost lighttpd]# mkdir -p socket


9,启动测试
[root@localhost lighttpd]# service lighttpd restart

Lighttpd 的详细介绍请点这里
Lighttpd 的下载地址请点这里

相关阅读

CentOS 5.6 下搭建Lighttpd

Cacti监控Lighttpd

Ubuntu 手动编译安装Lighttpd配置运行PHP

移植Lighttpd Web服务器到ARM Linux系统

Ubuntu下搭建Lighttpd+PHP+MySQL环境

在CentOS 5.6 上安装 Lighttpd + PHP5 + MySQL

Lighttpd 对视频文件压缩文件做防盗链

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/7a1292bbda9892f0b3aad094174ae63c.html