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
Ubuntu 手动编译安装Lighttpd配置运行PHP
在CentOS 5.6 上安装 Lighttpd + PHP5 + MySQL