lighttpd

2009-05-13 10:29:56来源:未知 阅读 ()

新老客户大回馈,云服务器低至5折


1、安装php时请一定要选择fastcgi的安装模式
注:在lang/php4 里用 make config看一下,选择fastcgi
# cd /usr/ports/www/lighttpd
# make install clean
安装完成后
/usr/local/lib/lighttpd    //mod 的文件
/usr/local/sbin/lighttpd  //执行文件
1、系统自动启动lighttpd
# ee /etc/rc.conf    加入
lighttpd_enable="YES"
2、启动lighttpd
# /usr/local/sbin/lighttpd -f /usr/local/etc/lighttpd.conf

# /usr/local/etc/rc.d/lighttpd.sh onestart | onestop | onerestart
3、修改 /usr/local/etc/lighttpd.conf  这个文件
a、打开mod_fastcgi、mod_access、mod_simple_vhost
server.port                = 80
$HTTP["host"] =~ "(^|\.)ddd\.cn" {
server.document-root = "/usr/local/www/data/ddd.cn/www.ddd.cn/"
}
$HTTP["host"] == "
www.aaa.com
" {
server.document-root = "/usr/local/www/data/aaa.com/www.aaa.com/"
}
fastcgi.server             = ( ".php" =>
                               ( "localhost" =>
                                 (
                                   "socket" => "/tmp/php-fastcgi.socket",
                                   "bin-path" => "/usr/local/bin/php-cgi"
                                 )
                               )
                            )
=============================================================================
# lighttpd configuration file
#
# use it as a base for lighttpd 1.0.0 and above
#
# $Id: lighttpd.conf,v 1.7 2004/11/03 22:26:05 weigon Exp $
############ Options you really have to take care of ####################
## modules to load
# at least mod_access and mod_accesslog should be loaded
# all other module should only be loaded if really neccesary
# - saves some time
# - saves memory
server.modules              = (
#                               "mod_rewrite",

标签:

版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有

上一篇:ssh 代理

下一篇:MYSQL不能从远程连接的一个解决方法