📄 netware.html
字号:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta name="keywords" content="Apache, 中文, 手册, 中文版, 中文手册, 中文版手册, 参考手册, 中文参考手册, 金步国" />
<meta name="description" content="Apache 2.2 中文版参考手册" />
<meta name="author" content="金步国" />
<link href="../style/css/manual-zip.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" />
<link href="../style/css/manual-zip-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" />
<link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" />
<title>Using Apache With Novell NetWare - Apache 2.2 中文版参考手册</title>
</head>
<body id="manual-page"><div id="page-header">
<p class="menu"><a href="../mod/index.html">模块索引</a> | <a href="../mod/directives.html">指令索引</a> | <a href="../faq/index.html">常见问题</a> | <a href="../glossary.html">词汇表</a> | <a href="../sitemap.html">站点导航</a></p><p class="apache">Apache HTTP Server 版本2.2</p><img alt="" src="../images/feather.gif" /></div>
<div class="up"><a href="./index.html"><img title="<-" alt="<-" src="../images/left.gif" /></a></div>
<div id="path"><a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP Server</a> > <a href="http://httpd.apache.org/docs/">文档</a> > <a href="../index.html">版本2.2</a> > <a href="./index.html">针对特定平台的说明</a></div>
<div id="translation-info"> <a href="../translator_announcement.html#thanks">致谢</a> | <a href="../translator_announcement.html#announcement">译者声明</a> | 本篇译者:<<a href="../translator_announcement.html#join">虚位以待</a>> | 本篇译稿完成时间:?年?月?日 | <a href="../translator_announcement.html#last_new">获取最新版本</a></div>
<div id="page-content"><div id="preamble"><h1>Using Apache With Novell NetWare</h1>
<p>This document explains how to install, configure and run
Apache 2.0 under Novell NetWare 6.0 and above. If you find any bugs,
or wish to contribute in other ways, please use our
<a href="http://httpd.apache.org/bug_report.html">bug reporting
page.</a></p>
<p>The bug reporting page and dev-httpd mailing list are <em>not</em>
provided to answer questions about configuration or running Apache.
Before you submit a bug report or request, first consult this document, the
<a href="../faq/index.html">Frequently Asked Questions</a> page and the other
relevant documentation topics. If you still have a question or problem,
post it to the <a href="news://developer-forums.novell.com/novell.devsup.webserver">
novell.devsup.webserver</a> newsgroup, where many Apache users are more than
willing to answer new and obscure questions about using Apache on NetWare.</p>
<p>Most of this document assumes that you are installing Apache
from a binary distribution. If you want to compile Apache
yourself (possibly to help with development, or to track down
bugs), see the section on <a href="#comp">Compiling Apache for
NetWare</a> below.</p>
</div>
<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="section">
<h2><a name="req" id="req">Requirements</a></h2>
<p>Apache 2.0 is designed to run on NetWare 6.0 service pack 3
and above. If you are running a service pack less
than SP3, you must install the latest
<a href="http://developer.novell.com/ndk/libc.htm">NetWare Libraries
for C (LibC)</a>.</p>
<p>NetWare service packs are available <a href="http://support.novell.com/misc/patlst.htm#nw">here</a>.</p>
<p>Apache 2.0 for NetWare can also be run in a NetWare 5.1 environment
as long as the latest service pack or the latest version
of the <a href="http://developer.novell.com/ndk/libc.htm">NetWare Libraries
for C (LibC)</a> has been installed . <strong>WARNING:</strong> Apache 2.0
for NetWare has not been targeted for or tested in this environment.</p>
</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="section">
<h2><a name="down" id="down">Downloading Apache for NetWare</a></h2>
<p>Information on the latest version of Apache can be found on
the Apache web server at <a href="http://www.apache.org/">http://www.apache.org/</a>. This
will list the current release, any more recent alpha or
beta-test releases, together with details of mirror web and
anonymous ftp sites. Binary builds of the latest releases of
Apache 2.0 for NetWare can be downloaded from
<a href="http://www.apache.org/dist/httpd/binaries/netware">here</a>.</p>
</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="section">
<h2><a name="inst" id="inst">Installing Apache for NetWare</a></h2>
<p>There is no Apache install program for NetWare currently. If you
are building Apache 2.0 for NetWare from source, you will need to
copy the files over to the server manually.</p>
<p>Follow these steps to install Apache on NetWare from the
binary download (assuming you will install to
<code>sys:/apache2</code>):</p>
<ul>
<li>Unzip the binary download file to the root of the <code>SYS:</code>
volume (may be installed to any volume)</li>
<li>Edit the <code>httpd.conf</code> file setting <code class="directive"><a href="../mod/core.html#serverroot">ServerRoot</a></code>和<code class="directive"><a href="../mod/core.html#servername">ServerName</a></code> along with any file path values
to reflect your correct server settings</li>
<li>Add <code>SYS:/APACHE2</code> to the search path, for example:
<div class="example"><p><code>SEARCH ADD SYS:\APACHE2</code></p></div>
</li>
</ul>
<p>Follow these steps to install Apache on NetWare manually
from your own build source (assuming you will install to
<code>sys:/apache2</code>):</p>
<ul>
<li>Create a directory called <code>Apache2</code> on a
NetWare volume</li>
<li>Copy <code>APACHE2.NLM</code>, <code>APRLIB.NLM</code>
to <code>SYS:/APACHE2</code></li>
<li>Create a directory under <code>SYS:/APACHE2</code>
called <code>BIN</code></li>
<li>Copy <code>HTDIGEST.NLM</code>, <code>HTPASSWD.NLM</code>,
<code>HTDBM.NLM</code>, <code>LOGRES.NLM</code>, <code>ROTLOGS.NLM</code>
to <code>SYS:/APACHE2/BIN</code></li>
<li>Create a directory under <code>SYS:/APACHE2</code>
called <code>CONF</code></li>
<li>Copy the <code>HTTPD-STD.CONF</code> file to the
<code>SYS:/APACHE2/CONF</code> directory and rename to
<code>HTTPD.CONF</code></li>
<li>Copy the <code>MIME.TYPES</code>, <code>CHARSET.CONV</code>和<code>MAGIC</code> files to <code>SYS:/APACHE2/CONF</code> directory</li>
<li>Copy all files and subdirectories in <code>\HTTPD-2.0\DOCS\ICONS</code>
to <code>SYS:/APACHE2/ICONS</code></li>
<li>Copy all files and subdirectories in <code>\HTTPD-2.0\DOCS\MANUAL</code>
to <code>SYS:/APACHE2/MANUAL</code></li>
<li>Copy all files and subdirectories in <code>\HTTPD-2.0\DOCS\ERROR</code>
to <code>SYS:/APACHE2/ERROR</code></li>
<li>Copy all files and subdirectories in <code>\HTTPD-2.0\DOCS\DOCROOT</code>
to <code>SYS:/APACHE2/HTDOCS</code></li>
<li>Create the directory <code>SYS:/APACHE2/LOGS</code>
on the server</li>
<li>Create the directory <code>SYS:/APACHE2/CGI-BIN</code>
on the server</li>
<li>Create the directory <code>SYS:/APACHE2/MODULES</code>
and copy all nlm modules into the <code>modules</code> directory</li>
<li>Edit the <code>HTTPD.CONF</code> file searching for all
<code>@@Value@@</code> markers and replacing them with the
appropriate setting</li>
<li>Add <code>SYS:/APACHE2</code> to the search path, for example:
<div class="example"><p><code>SEARCH ADD SYS:\APACHE2</code></p></div>
</li>
</ul>
<p>Apache may be installed to other volumes besides the default <code>SYS</code> volume.</p>
<p>During the build process, adding the keyword "install" to the makefile command line
will automatically produce a complete distribution package under the subdirectory
<code>DIST</code>. Install Apache by simply copying the distribution that was produced
by the makfiles to the root of a NetWare volume (see: <a href="#comp">Compiling Apache for
NetWare</a> below).</p>
</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="section">
<h2><a name="run" id="run">Running Apache for NetWare</a></h2>
<p>To start Apache just type <code>apache</code> at the
console. This will load apache in the OS address space. If you
prefer to load Apache in a protected address space you may
specify the address space with the load statement as follows:</p>
<div class="example"><p><code>
load address space = apache2 apache2
</code></p></div>
<p>This will load Apache into an address space called apache2.
Running multiple instances of Apache concurrently on NetWare is
possible by loading each instance into its own protected
address space.</p>
<p>After starting Apache, it will be listening to port 80
(unless you changed the <code class="directive"><a href="../mod/mpm_common.html#listen">Listen</a></code>
directive in the configuration files).
To connect to the server and access the default page,
launch a browser and enter the server's name or address. This
should respond with a welcome page, and a link to the Apache
manual. If nothing happens or you get an error, look in the
<code>error_log</code> file in the <code>logs</code>
directory.</p>
<p>Once your basic installation is working, you should
configure it properly by editing the files in the
<code>conf</code> directory.</p>
<p>To unload Apache running in the OS address space just type
the following at the console:</p>
<div class="example"><p><code>
unload apache2
</code></p></div>
<p>或</p>
<div class="example"><p><code>
apache2 shutdown
</code></p></div>
<p>If apache is running in a protected address space specify the
address space in the unload statement:</p>
<div class="example"><p><code>
unload address space = apache2 apache2
</code></p></div>
<p>When working with Apache it is important to know how it will
find the configuration files. You can specify a configuration
file on the command line in two ways:</p>
<ul>
<li><code>-f</code> specifies a path to a particular
configuration file</li>
</ul>
<div class="example"><p><code>
apache2 -f "vol:/my server/conf/my.conf"
</code></p></div>
<div class="example"><p><code>
apache -f test/test.conf
</code></p></div>
<p>In these cases, the proper <code class="directive"><a href="../mod/core.html#serverroot">ServerRoot</a></code>
should be set in the configuration file.</p>
<p>If you don't specify a configuration file name with <code>-f</code>,
Apache will use the file name compiled into the server, usually
<code>conf/httpd.conf</code>. Invoking Apache with the <code>-V</code>
switch will display this value labeled as <code>SERVER_CONFIG_FILE</code>.
Apache will then determine its <code class="directive"><a href="../mod/core.html#serverroot">ServerRoot</a></code>
by trying the following, in this order:</p>
<ul>
<li>A <code>ServerRoot</code> directive via a
<code>-C</code> switch.</li>
<li>The <code>-d</code> switch on the command line.</li>
<li>Current working directory</li>
<li>The server root compiled into the server.</li>
</ul>
<p>The server root compiled into the server is usually <code>sys:/apache2</code>.
invoking apache with the <code>-V</code> switch will display this value labeled as
<code>HTTPD_ROOT</code>.</p>
<p>Apache 2.0 for NetWare includes a set of command line directives that can
be used to modify or display information about the running instance of the
web server. These directives are only available while Apache is running. Each
of these directives must be preceded by the keyword <code>APACHE2</code>.</p>
<dl>
<dt>RESTART</dt>
<dd>Instructs Apache to terminate all running worker
threads as they become idle, reread the configuration file and restart each
worker thread based on the new configuration.</dd>
<dt>VERSION</dt>
<dd>Displays version information about the currently
running instance of Apache.</dd>
<dt>MODULES</dt>
<dd>Displays a list of loaded modules both built-in
and external.</dd>
<dt>DIRECTIVES</dt>
<dd>Displays a list of all available directives.</dd>
<dt>SETTINGS</dt>
<dd>Enables or disables the thread status display
on the console. When enabled, the state of each running threads is displayed
on the Apache console screen.</dd>
<dt>SHUTDOWN</dt>
<dd>Terminates the running instance of the Apache
web server.</dd>
<dt>HELP</dt>
<dd>Describes each of the runtime directives.</dd>
</dl>
<p>By default these directives are issued against the instance of Apache running
in the OS address space. To issue a directive against a specific instance running
in a protected address space, include the -p parameter along with the name of the
address space. For more information type "apache2 Help" on the command line.</p>
</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="section">
<h2><a name="use" id="use">Configuring Apache for NetWare</a></h2>
<p>Apache is configured by reading configuration files usually stored
in the <code>conf</code> directory. These are the same as files used
to configure the Unix version, but there are a few different directives for
Apache on NetWare. See the <a href="../index.html">Apache
documentation</a> for all the available directives.</p>
<p>The main differences in Apache for NetWare are:</p>
<ul>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -