📄 directives.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<TITLE>vxWeb Configuration</TITLE>
</HEAD>
<!-- Background white, links blue (unvisited), navy (visited), red (active) -->
<BODY
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#000080"
ALINK="#FF0000"
>
<DIV ALIGN="CENTER">
<IMG SRC="images/vxweb.gif" ALT="[vxWeb Documentation]">
<H3>
vxWeb HTTP Server Version 1.1.0
</H3>
</DIV>
<H1 ALIGN="CENTER">vxWeb Configuration</H1>
<P>
These configuration parameters control the vxWeb features, and are
stored in the file <b>vxWeb.txt</b> which is located in the directory where
vxWeb is stored or on Palm-size PC's the My Documents directory.
</P>
<H2>Directives</H2>
<UL>
<LI><A HREF="#DocumentRoot">DocumentRoot</A>
<LI><A HREF="#HostName">HostName</A>
<LI><A HREF="#StartPage">StartPage</A>
<LI><A HREF="#AccessLog">AccessLog</A>
<LI><A HREF="#TraceLog">TraceLog</A>
<LI><A HREF="#ErrorLog">ErrorLog</A>
<LI><A HREF="#DeleteDir">DeleteDir</A>
<LI><A HREF="#TempDir">TempDir</A>
<LI><A HREF="#Port">Port</A>
<LI><A HREF="#CgiTimeOut">CgiTimeOut</A>
<LI><A HREF="#CommTimeOut">CommTimeOut</A>
<LI><A HREF="#BinarySendStallTime">BinarySendStallTime</A>
<LI><A HREF="#MaxKeepAlive">MaxKeepAlive</A>
<LI><A HREF="#DNSLookup">DNSLookup</A>
<LI><A HREF="#Minimize">Minimize</A>
<LI><A HREF="#LogConnections">LogConnections</A>
<LI><A HREF="#LogTime">LogTime</A>
<LI><A HREF="#ReadAccessName">ReadAccessName</A>
<LI><A HREF="#WriteAccessName">WriteAccessName</A>
<LI><A HREF="#PathAlias">PathAlias</A>
<LI><A HREF="#ExecAlias">ExecAlias</A>
<LI><A HREF="#ExtType">ExtType</A>
</UL>
<HR>
<H2><A NAME="DocumentRoot">DocumentRoot</A></H2>
<STRONG>Syntax:</STRONG> DocumentRoot <EM>DirectoryName</EM><BR>
<STRONG>Default:</STRONG> <CODE>DocumentRoot vxWeb/HTML</CODE><BR>
This directive sets the directory from which vxWeb will serve files.
Unless matched by a directive like PathAlias, the server appends the path from the requested
URL to the document root to make the path to the document. Example:
<BLOCKQUOTE><CODE>DocumentRoot /vxWeb/HTML</CODE></BLOCKQUOTE>
then an access to <CODE>http://www.the.host.com/index.html</CODE> refers to
<CODE>/vxWeb/HTML/index.html</CODE>
<P><HR>
<H2><A NAME="HostName">HostName</A></H2>
<STRONG>Syntax:</STRONG> HostName <EM>Name of host</EM><BR>
<STRONG>Default:</STRONG> <CODE>NONE</CODE><BR>
This directive sets the host name given out.
<P><HR>
<H2><A NAME="StartPage">StartPage</A></H2>
<STRONG>Syntax:</STRONG> StartPage <EM>DocumentName</EM><BR>
<STRONG>Default:</STRONG> <CODE>StartPage index.html</CODE><BR>
This directive sets the name of the default document which vxWeb will serve. Example:
<BLOCKQUOTE><CODE>DocumentRoot /vxWeb/HTML<BR>StartPage index.html</CODE></BLOCKQUOTE>
then an access to <CODE>http://www.the.host.com</CODE> refers to
<CODE>/vxWeb/HTML/index.html</CODE><P><HR>
<H2><A NAME="AccessLog">AccessLog</A></H2>
<STRONG>Syntax:</STRONG> AccessLog <EM>FileName</EM><BR>
<STRONG>Default:</STRONG> <CODE>NONE</CODE><BR>
This directive sets the name of the file which will contain a log of accesses to the server.
If this directive is omitted then no log will be kept.<P><HR>
<H2><A NAME="TraceLog">TraceLog</A></H2>
<STRONG>Syntax:</STRONG> TraceLog <EM>FileName</EM><BR>
<STRONG>Default:</STRONG> <CODE>NONE</CODE><BR>
This optional directive sets the name of the file which will contain a trace of incoming accesses.
Is used for debuging purposes.<P><HR>
<H2><A NAME="ErrorLog">ErrorLog</A></H2>
<STRONG>Syntax:</STRONG> ErrorLog <EM>FileName</EM><BR>
<STRONG>Default:</STRONG> <CODE>NONE</CODE><BR>
This optional directive sets the name of the file which will contain error information.
Not currently used.<P><HR>
<H2><A NAME="DeleteDir">DeleteDir</A></H2>
<STRONG>Syntax:</STRONG> DeleteDir <EM>DirectoryName</EM><BR>
<STRONG>Default:</STRONG> <CODE>NONE</CODE><BR>
This optional directive sets the name of the directory which will contain resources
deleted via the HTTP 1.1 DELETE method and can be used for backup.<P><HR>
<H2><A NAME="TempDir">TempDir</A></H2>
<STRONG>Syntax:</STRONG> TempDir <EM>DirectoryName</EM><BR>
<STRONG>Default:</STRONG> <CODE>TempDir Temp</CODE><BR>
This directive sets the name of the directory which will contain temporary files.<P><HR>
<H2><A NAME="Port">Port</A></H2>
<STRONG>Syntax:</STRONG> Port <EM>Number</EM><BR>
<STRONG>Default:</STRONG> <CODE>Port 80</CODE><BR>
The Port directive sets number of the port which vxWeb listens for incoming requests.
Some port numbers (especially below 1024) are reserved for particular protocols.
The standard port for the http protocol is 80.
<P><HR>
<H2><A NAME="CgiTimeOut">CgiTimeOut</A></H2>
<STRONG>Syntax:</STRONG> CgiTimeOut <EM>Number</EM><BR>
<STRONG>Default:</STRONG> <CODE>CgiTimeOut 5000</CODE><BR>
This directive sets the number of milliseconds to wait for a CGI to complete.
This prevents a runaway CGI from locking-up the server. A value of 0 indicates
an infinite wait.<P><HR>
<H2><A NAME="CommTimeOut">CommTimeOut</A></H2>
<STRONG>Syntax:</STRONG> CommTimeOut <EM>Number</EM><BR>
<STRONG>Default:</STRONG> <CODE>CommTimeOut 5</CODE><BR>
This directive sets the number of seconds to wait for a receive or send to complete prior to
timing-out.<P><HR>
<H2><A NAME="BinarySendStallTime">BinarySendStallTime</A></H2>
<STRONG>Syntax:</STRONG> BinarySendStallTime <EM>Number</EM><BR>
<STRONG>Default:</STRONG> <CODE>BinarySendStallTime 0</CODE><BR>
This directive sets the number of milliseconds to suspend processing between sending of blocks
of binary data. This is typically used when IE and vxWeb are on the same machine and images are not displayed properly.
A value of 250 maybe used in that situation.<P><HR>
<H2><A NAME="MaxKeepAlive">MaxKeepAlive</A></H2>
<STRONG>Syntax:</STRONG> MaxKeepAlive <EM>Number</EM><BR>
<STRONG>Default:</STRONG> <CODE>MaxKeepAlive 3</CODE><BR>
This directive sets the maximum number of keep-alive requests to process in HTTP 1.1.<P><HR>
<H2><A NAME="DNSLookup">DNSLookup</A></H2>
<STRONG>Syntax:</STRONG> DNSLookup <EM>ON/OFF</EM><BR>
<STRONG>Default:</STRONG> <CODE>DNSLookup ON</CODE><BR>
If this directive is ON a DNS lookup occurs for all requests and the client name
(and not address) is used for reporting functions (i.e. AccessLog).<P><HR>
<H2><A NAME="Minimize">Minimize</A></H2>
<STRONG>Syntax:</STRONG> Minimize <EM>ON/OFF</EM><BR>
<STRONG>Default:</STRONG> <CODE>Minimize Off</CODE><BR>
If this directive is ON a vxWeb starts in a minimize mode.<P><HR>
<H2><A NAME="LogConnections">LogConnections</A></H2>
<STRONG>Syntax:</STRONG> LogConnections <EM>ON/OFF</EM><BR>
<STRONG>Default:</STRONG> <CODE>LogConnections On</CODE><BR>
If this directive is ON vxWeb logs connections to the local window.<P><HR>
<H2><A NAME="LogTime">LogTime</A></H2>
<STRONG>Syntax:</STRONG> LogTime <EM>GMT/LOCAL</EM><BR>
<STRONG>Default:</STRONG> <CODE>LogTime Local</CODE><BR>
This directive indicates what time (GMT or Local) should be used for the AccessLog.<P><HR>
<H2><A NAME="ReadAccessName">ReadAccessName</A></H2>
<STRONG>Syntax:</STRONG> ReadAccessName <EM>FileName</EM><BR>
<STRONG>Default:</STRONG> <CODE>NONE</CODE><BR>
This directive sets the name of the file used for read access authorizations. See <A HREF="Authorization.html">Authorizations</A> for details.<P><HR>
<H2><A NAME="WriteAccessName">WriteAccessName</A></H2>
<STRONG>Syntax:</STRONG> WriteAccessName <EM>FileName</EM><BR>
<STRONG>Default:</STRONG> <CODE>NONE</CODE><BR>
This directive sets the name of the file used for write access authorizations. See <A HREF="Authorization.html">Authorizations</A> for details.<P><HR>
<H2><A NAME="PathAlias">PathAlias</A></H2>
<STRONG>Syntax:</STRONG> PathAlias <EM>AliasName ActualLocation </EM><BR>
<STRONG>Default:</STRONG> <CODE>NONE</CODE><BR>
This directive maps document tree aliases to real locations. There can be up to 128 aliases. Example:
<BLOCKQUOTE><CODE>PathAlias /image /vxWeb/HTML/image<BR>PathAlias / /</CODE></BLOCKQUOTE>
<P><HR>
<H2><A NAME="ExecAlias">ExecAlias</A></H2>
<STRONG>Syntax:</STRONG> ExecAlias <EM>AliasName ActualLocation </EM><BR>
<STRONG>Default:</STRONG> <CODE>NONE</CODE><BR>
This directive maps cgi-bin aliases to real locations. There can be up to 128 aliases. Example:
<BLOCKQUOTE><CODE>ExecAlias /cgi-bin /vxWeb/HTML/cgi-bin</CODE></BLOCKQUOTE>
<P><HR>
<H2><A NAME="ExtType">ExtType</A></H2>
<STRONG>Syntax:</STRONG> ExtType <EM>Extension Type </EM><BR>
<STRONG>Default:</STRONG> <CODE>NONE</CODE><BR>
This directive is used to map file extensions to the appropriate MIME type.
MIME types beginning with "text/" are assumed to be text format, all others
are assumed binary and transmitted as such. There can be up to 256 extensions. Example
<BLOCKQUOTE><CODE>ExtType html text/html<BR>ExtType jpeg image/jpeg</CODE></BLOCKQUOTE>
<P><HR>
<HR>
<H3 ALIGN="CENTER">
vxWeb HTTP Server Version 1.1.0
</H3>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -