请教一个关于在嵌入式平台上的boa webserver的问题
1个回答
2015-01-08
展开全部
用BOA作为WEB SERVER编译流程说明
WEB SERVER 编译流程说明:
1. 用BOA作为WEB SERVER
\src\makefile下载见附件。
2. 按照"举例介绍uclinux应用程序的编译方法"的步骤编译。但是在第7小步,要修改inittab.conf
/etc> cat inittab
inet:unknown:/bin/inetd
boa:unknown:/bin/boa -c /home 加入这一行
并且把boa.conf 和mime.types文件修改并拷贝到/home目录
为了让boa简单的跑起来:
boa.conf修改方法,粗体字表示修改了
# Boa v0.94 configuration file
# File format has changed little from 0.92
# version changes are noted in the comments
#
# The Boa configuration file is parsed with a lex/yacc or flex/bison
# generated parser. If it reports an error, the line number will be
# provided; it should be easy to spot. The syntax of each of these
# rules is very simple, and they can occur in any order. Where possible
# these directives mimic those of NCSA httpd 1.3; I saw no reason to
# introduce gratuitous differences.
# The "ServerRoot" is not in this configuration file. It can be compiled
# into the server (see defines.h) or specified on the command line with
# the -c option, for example:
#
# boa -c /usr/local/boa
# Port: The port Boa runs on. The default port for http servers is 80.
# If it is less than 1024, the server must be started as root.
Port 80
# User: The name or UID the server should run as.
# Group: The group name or GID the server should run as.
User 0
# nobody
Group 0
# nogroup
# ServerAdmin: The email address where server problems should be sent.
# Note: this is not currently used.
#ServerAdmin root@localhost
# ErrorLog: The location of the error log file. If this does not start
# with /, it is considered relative to the server root.
# Set to /dev/null if you don't want errors logged.
#ErrorLog /home/error_log
#/var/log/boa/error_log
#ErrorLog /dev/null
# AccessLog: The location of the access log file. If this does not
# start with /, it is considered relative to the server root.
# Comment out or set to /dev/null (less effective) to disable
# Access logging.
#AccessLog /var/log/boa/access_log
#AccessLog /dev/null
# RefererLog: The location of the referer log file. If this does not
# start with /, it is considered relative to the server root.
# Comment out or set to /dev/null (less effective) to disable
# referer logging.
#RefererLog /var/log/boa/referer_log
#RefererLog /dev/null
# AgentLog: The location of the agent log file. If this does not
# start with /, it is considered relative to the server root.
# Comment out or set to /dev/null (less effective) to disable
# User-Agent logging.
#AgentLog /dev/null
#AgentLog /var/log/boa/agent_log
# VerboseCGILogs: this is just a logical switch.
# Comment out to disable.
#VerboseCGILogs
# ServerName: the name of this server that should be sent back to
# clients if different than that returned by gethostname -- often
WEB SERVER 编译流程说明:
1. 用BOA作为WEB SERVER
\src\makefile下载见附件。
2. 按照"举例介绍uclinux应用程序的编译方法"的步骤编译。但是在第7小步,要修改inittab.conf
/etc> cat inittab
inet:unknown:/bin/inetd
boa:unknown:/bin/boa -c /home 加入这一行
并且把boa.conf 和mime.types文件修改并拷贝到/home目录
为了让boa简单的跑起来:
boa.conf修改方法,粗体字表示修改了
# Boa v0.94 configuration file
# File format has changed little from 0.92
# version changes are noted in the comments
#
# The Boa configuration file is parsed with a lex/yacc or flex/bison
# generated parser. If it reports an error, the line number will be
# provided; it should be easy to spot. The syntax of each of these
# rules is very simple, and they can occur in any order. Where possible
# these directives mimic those of NCSA httpd 1.3; I saw no reason to
# introduce gratuitous differences.
# The "ServerRoot" is not in this configuration file. It can be compiled
# into the server (see defines.h) or specified on the command line with
# the -c option, for example:
#
# boa -c /usr/local/boa
# Port: The port Boa runs on. The default port for http servers is 80.
# If it is less than 1024, the server must be started as root.
Port 80
# User: The name or UID the server should run as.
# Group: The group name or GID the server should run as.
User 0
# nobody
Group 0
# nogroup
# ServerAdmin: The email address where server problems should be sent.
# Note: this is not currently used.
#ServerAdmin root@localhost
# ErrorLog: The location of the error log file. If this does not start
# with /, it is considered relative to the server root.
# Set to /dev/null if you don't want errors logged.
#ErrorLog /home/error_log
#/var/log/boa/error_log
#ErrorLog /dev/null
# AccessLog: The location of the access log file. If this does not
# start with /, it is considered relative to the server root.
# Comment out or set to /dev/null (less effective) to disable
# Access logging.
#AccessLog /var/log/boa/access_log
#AccessLog /dev/null
# RefererLog: The location of the referer log file. If this does not
# start with /, it is considered relative to the server root.
# Comment out or set to /dev/null (less effective) to disable
# referer logging.
#RefererLog /var/log/boa/referer_log
#RefererLog /dev/null
# AgentLog: The location of the agent log file. If this does not
# start with /, it is considered relative to the server root.
# Comment out or set to /dev/null (less effective) to disable
# User-Agent logging.
#AgentLog /dev/null
#AgentLog /var/log/boa/agent_log
# VerboseCGILogs: this is just a logical switch.
# Comment out to disable.
#VerboseCGILogs
# ServerName: the name of this server that should be sent back to
# clients if different than that returned by gethostname -- often
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询