⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 boa.8

📁 boa:Linux系统中的轻量级Web服务
💻 8
字号:
.TH BOA 8 "Jan 22 2000" "Version 0.94".SH NAME.B boa \- a single\-tasking high performance http server.SH SYNOPSIS.B boa.RB [ -c .IR server_root ] .RB [ -r .IR chroot ] .RB [ -d ].SH DESCRIPTIONBoa is a single-tasking HTTP server. That means that unlike traditional webservers, it does not fork for each incoming connection, nor does it fork manycopies of itself to handle multiple connections. It internally multiplexes allof the ongoing HTTP connections, and forks only for CGI programs (which must beseparate processes.) Preliminary tests show Boa is more than twice as fast asApache..PPThe primary design goals of Boa are speed and security. Security, in the senseof "can't be subverted by a malicious user", not "fine grained access controland encrypted communications". Boa is not intended as a feature-packed server;if you want one of those, check out WN from John Franks. Modifications to Boathat improve its speed, security, robustness, and portability, are eagerlysought. Other features may be added if they can be achieved without hurting theprimary goals. .SH OPTIONS.IP \fB-d\fR instruct Boa not to fork itself (non-daemonize)..IP "\fB-c \fIserver_root\fR"choose a server root overriding the default SERVER_ROOT #define in .I defines.hThe server root must hold your local copy of the configuration file.IP "\fB-r \fIchroot\fR"instruct Boa where to chdir and chroot to.  The chdir/chrootis done before the configuration file is read, or any logfiles are opened..SH FILES.TP\fBboa.conf\fR \- the sole configuration file for Boa.  The directives in this file are defined in the .B DIRECTIVESsection..TP\fBmime.types\fR \- the MimeTypes <filename>defines what Content-Type Boa will send in an HTTP/1.0or better transaction..SH DIRECTIVESThe Boa configuration file is parsed with a lex/yacc or flex/bison generatedparser.  If it reports an error, the line number will be provided; it shouldbe easy to spot.  The syntax of each of these rules is very simple, and theycan occur in any order.  Where possible, these directives mimic those of NCSAhttpd 1.3; We saw no reason to introduce gratuitous differences..PPNote: the "ServerRoot" is not in this configuration file.  It can be compiledinto the server (see .I defines.h) or specified on the command line with the .B -c option.The following directives are contained in the .I boa.conffile, and most, but not all, are required..TPPort <integer>This is the port that Boa runs on.  The default port for http servers is 80. If it is less than 1024, the server must be started as root..TPUser <user name or UID>The name or UID the server should run as.  For Boa to attempt this, theserver must be started as root..TPGroup <group name or GID>The group name or GID the server should run as.  For Boa to attempt this,the server must be started as root..TPServerAdmin <email address>The email address where server problems should be sent.Note: this is not currently used. .TPErrorLog <filename>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. .TPAccessLog <filename>The location of the access log file.  If this does not start with /, it isconsidered relative to the server root.Comment out or set to /dev/null (less effective) to disable access logging..TPVerboseCGILogsThis is a logical switch and does not take any parameters.Comment out to disable..TPServerName <server_name>The name of this server that should be sent back toclients if different than that returned by gethostname..TpVirtualHostThis is a logical switch and does not take any parameters.Comment out to disable.Given DocumentRoot /var/www, requests on interface 'A' or IP 'IP-A'become /var/www/IP-A.Example: http://localhost/ becomes /var/www/127.0.0.1 .TPDocumentRoot <directory>The root directory of the HTML documents. If this does not start with/, it is considered relative to the server root..TPUserDir <directory>The name of the directory which is appended onto a user's home directory if a~user request is received..TPDirectoryIndex <filename>Name of the file to use as a pre-written HTML directory index.  Please  makeand use these files.  On the fly creation of directory indexes can be slow..TPDirectoryMaker <directory>Name of the program used to generate on-the-fly directory listings.The program must take one or two command-line arguments, the firstbeing the directory to index (absolute), and the second, which is optional,contains what Boa would have the "title" of the document be.Comment out if you don't want on the fly directory listings.If this does not start with/, it is considered relative to the server root..TPKeepAliveMax <integer>Number of KeepAlive requests to allow per connection.  Comment out, or setto 0 to disable keepalive processing. .TPKeepAliveTimeout <integer>Number of seconds to wait before keepalive connections time out..TPMimeTypes <file>The location of the .I mime.typesfile.  If this does not start with /, it is considered relative to the server root. Set to /dev/null if you do not want to load a mime types file. Do *not* comment out (better use AddType!).TPDefaultType <mime type>MIME type used if the file extension is unknown, or there is no file extension..TPAddType <mime type> <extension> [extension...]Associates a MIME type with an extension or extensions..TPRedirect, Alias, and ScriptAlias <path1> <path2>Redirect, Alias, and ScriptAlias all have the same semantics \-\- theymatch the beginning of a request and take appropriate action.  UseRedirect for other servers, Alias for the same server, and ScriptAlias toenable directories for script execution.Redirect allows you to tell clients about documents which used to existin your server's namespace, but do not anymore.  This allows you tellthe clients where to look for the relocated document.Alias aliases one path to another.  Of course, symbolic links in thefile system work fine too.          ScriptAlias maps a virtual path to a directory for serving scripts..PPPlease see the included .I boa.conf for defaults and examples..SH HISTORYLike the Linux kernel, even numbered versions are "stable", and odd numberedversions are "unstable", or rather, "development".Versions 0.91 and 0.91beta of Boa were released by Paul Phillips <paulp@go2net.com>.PPVersion 0.92 was released by Larry Doolittle on December 12, 1996..PPVersion 0.93 was the development version of 0.94. .PPVersion 0.94 was released 22 Jan 2000..SH BUGSThere are probably bugs, but we are not aware of any at this time..SH AUTHORBoa was created by Paul Phillips <paulp@go2net.com>. It is now being maintained andenhanced by Larry Doolittle<ldoolitt@boa.org> andJon Nelson <jnelson@boa.org>..PPLinux is the development platform at the moment, otherOS's are known to work. If you'd like tocontribute to this effort, contact Larry or Jon via e-mail. .SH LICENSEThis program is distributed under the GNU General Public License, as noted ineach source file.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -