嵌入式Web服务器Lighttpd的交叉编译及配置(for arm-linux)(2)
- UID
- 1029342
- 性别
- 男
|
嵌入式Web服务器Lighttpd的交叉编译及配置(for arm-linux)(2)
2.3. 修改刚复制过来的lighttpd.conf文件
1)将16行至20行修改为如下褐色加粗字体所示:
var.log_root = "/opt/web/lighttpd-1.4.30-arm/log"
var.server_root = "/opt/web/lighttpd-1.4.30-arm"
var.state_dir = "/opt/web/lighttpd-1.4.30-arm"
var.home_dir = "/opt/web/lighttpd-1.4.30-arm"
var.conf_dir = "/opt/web/lighttpd-1.4.30-arm/config"
2)将61行和93行修改为如下褐色加粗字体所示:
var.cache_dir = server_root + "/cache"
server.use-ipv6 = "disable"
3)将104和105行注释掉,如下所示:
#server.username = "lighttpd"
#server.groupname = "lighttpd"
4)将115行修改为如下褐色加粗字体所示:
server.document-root = server_root + "/webpages"
5)将127行注释掉,如下所示:
#server.pid-file = state_dir + "/lighttpd.pid"
6)如果不需要查看错误日志文件,可以将141行注释掉,如下所示:
#server.errorlog = log_root + "/error.log"
7)将152行、158行、191行注释掉,如下所示:
#include "conf.d/access_log.conf"
#include "conf.d/debug.conf"
#server.network-backend = "linux-sendfile"
8)根据系统资源设置207行和225行的数值,本系统的设置分别如下褐色加粗字体所示:
server.max-fds = 256
server.max-connections = 128
9)将314至316行注释掉,如下所示:
#$HTTP["url"] =~ "\.pdf$" {
# server.range-requests = "disable"
#}
10)将373行修改为如下褐色加粗字体所示:
server.upload-dirs = ( "/opt/web/lighttpd-1.4.30-arm/upload" )
|
|
|
|
|
|