·建站首页 ·钻石 ·繁體
您的位置: 中国建站之家 -> 网站开发设计 -> PHP教程 -> apache服务器参考(1)

apache服务器参考(1)

作者:未知  来源:转载  发布时间:2005-7-21 10:33:04  发布人:acx

序(Preface)

这份手册是 1.0 版阿帕奇服务器(Apache HTTP server)的文件。这个
服务器是阿帕奇计划的产品,此计划试图回应某些对积极发展一套可以
免费取得之 HTTP 服务器的关心。这个计划的目标是提供一个安全的,
有效率的而且可以扩充功能的服务器,此服务器提供 HTTP 服务且符合
目前的 HTTP 标准。

这套阿帕奇 httpd 服务器的设计不但与 NCSA httpd 1.3 相容,并且
提供常常有人要求的特色,像是


。作为身分验认之用的 DBM 资料库
。自定的(customised)错误与问题回应方式
。多重的 directoryindex 指令
。不限次数的 Alias 以及 Redirect 指令
。以内容为基础的(Content-based) 文件协商(negotiation)
。虚拟服务器


阿帕奇授权书


Copyright 1995 The Apache Group. All rights reserved.

假若符合下列条件,无论是否经过修改,以原始程序及执行程序的形式
散播与使用都是许可的:


1. 散播原始程序码必须保留上述的版权告示,这份条件列表以及下列
声明。

2. 以执行程序码的形式散播必须在随附散播的文件以及/或是资讯中
重现上述的版权告示,这份条件列表以及下列声明。

3. 所有提及或使用这套软体特色的广告都必须显示下列讯息:
`This product includes software developed by the Apache Group
for use in the Apache HTTP server project (http://www.apache.org/).''

4. `Apache Server'' 以及 `Apache Group'' 这些名称没有随附前述的
的许可不得用来为这套软体的衍生产品背书或鼓励采用。

5. 以任何形式散播都必须保留下列讯息:
`This product includes software developed by the Apache Group
for use in the Apache HTTP server project (http://www.apache.org/).''

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following condictions
are met:

1. Redistribution of source code must retain the above copyright
notice, this list of condictions and the following disclaimer.

2. Redistribution in binary form must reproduce the above copyright
notice, this list of condictions and the following disclaimer in
the documentation and/or other materials provided with the
distribution.

3. All advertising materials mentioning features or use of this
software must display the following acknowledge: `This product
includes software developed by the Apache Group for use in the
Apache HTTP server project (http://www.apache.org/).''

4. The names `Apache Server'' and `Apache Group'' must not be used to
endorse or prompt products derived from this software without
prior written permission.

5. Redistribution of any form whatsoever must retain the following
acknowledge: `This product includes software developed by the
Apache Group for use in the Apache HTTP server project
(http://www.apache.org/).''



THIS SOFTWARE IS PROVIDED BY THE APACHE GROUP ``AS IS'''' AND ANY
EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARITICULAR
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE APACHE GROUP OR ITS
CONTRIBUTORS BE LIABLE FOR ANY DIRECT,INDIRECT, INCIDETAL, SPECIAL,
EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING,BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;LOSS OF USE, DATA OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
OF LIABILITY, WHERHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHER WISE)ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

This software consists of voluntary contributions made by many
individuals on behalf of the Apache Group and was originally
based on public domain software written at the National Center
for Supercomputing Applications, University of Illinois, Urbana-
Champaign. For more information on the apache Group and the Apache
HTTP server project, please see http://www.apache.org/.



第一章

编译以及安装阿帕奇


1.1 下载阿帕奇

最新的阿帕奇资讯可以在阿帕奇网站 http://www.apache.org/ 找到。
此处会列出目前发行的版本,任何更新的公开测试版,同时还有映射的
(mirror)网站与匿名文件传输(ftp) 站之细节。


1.2 编译阿帕奇

这一版的阿帕奇支援所谓的‘选用性模组’。然而,为了使这些模组能
有效率,此服务器必须知道哪些模组要编译进去;这需要产生一点短短
的程序码(`modules.c'') 单纯地列出它们。

如果你满意我们的标准模组集,而且打算继续让它保持这样,那麽你可
以直接编辑我们提供的 Makefile 并且如同你以前作过的一样编译它。
如果你想要使用选用性模组,那麽无论如何,你都得执行配置指令稿。

这样做:

1. 编辑 `Configuration'' 这个文件。这里面包含每一种机器
的 Makefile 设定,而且在这底下还有个额外的节区列出要
编译进去的模组,以及包含这些模组的文件名称,你将得:

(a) 选择适合你机器的一种编译器以及编译选项。
(b) 消掉相对於你想包含进去的模组上面的注解(文件底
端列出模组的那些行)或者加上对应你自己所撰写之
自制(custom)模组的一些新行。注意,如果你想要有
DBM 验认(auth)的话必须明确地配置进去;只要消掉
对应的行上面的注解即可。

2. 执行 `Configure'' 这个指令shell;

% Configure
Using `Configuration'' as config file
%

这会产生新版的 Makefile 以及 modules.c 文件。如果你
想要维护多个配置,那麽你可以这样,例如

% Configure -file Configuration.ai
Using alternate config file Configuration.ai
%

3.

[1] [2]  下一页

将本文收藏到QQ书签与更多好友分享