4. | c Nä}"_ |
^8‰Á•î˜˜ | ‹ÍlGˆh | zÙp¹[ü‚*
Apache HTTP Server rHg,2.2
Apache > HTTP Server > e‡hc > rHg,2.2
0 0 •ôŒ" |‹Ñ€ Xðf | g,{Ç‹Ñ€ ÿ
‘ÑkeVý | g,˜ug T fôe°ÿ 2006^t3g 21eå ƒ·SÖg e°rHg,
|
Apache 2.0 e°ry`'i‚•ð
kde‡hccÏ•ðN†Apache 1.3TŒ2.0rHg,NK•ôv„N;‰•SØS 0
h8_Ãv„Xž_:
Unix~¿z
W(e/c POSIX~¿z v„Unix|û~ßN ÿ s°W(Apache€ýW(m÷T v„Y •Ûz 0 Y ~¿z j!_ N •ÐˆLÿ O•_ˆY (OF—^Qh•è)‘M•nv„SïO8•)`'_—R0N†e9U„0
e°v„• ‹Ñ|û~ß
‘ÍQ™N†• ‹Ñ|û~ßÿ s°W(f/WúNŽ a u t o c o n fTŒ l i b t o o lv„ÿ O•_—Apachev„‘M•n|û~ßN QvNÖ•oNöS fôR vøO<0
Y SO‹®e/c
Apaches°W(]ò~Ïbåg N†€ýY e/c Y SO‹®v„^•Bg„• 0m o d _ e c h o1f/N N*O‹[P0
[ù—^Unix^sSðfôY}v„e/c
Apache2.0W(‹øY‚BeOS0 OS/20 Windows{I—^Unix^sSðN g N†fôY}v„• ^¦TŒz3[š`'0 –•w@^sSðry[šv„ t j!WW(MPM)TŒApacheSïyûi •ÐˆLeö(APR)v„_ Qeÿ Apac
Y •ïY
W(•ÙN›^sSðN v„c Näu1[ƒNìg,W0v„APIc Nä[žs°0 ••QMN†Nå_€O•u(POSIXj!bßB• b v„bugTŒ`'€ýONN 0
e°v„ Apache API
2.0N-j!WWv„APIg N†‘ÍY'e9SØ0 _ˆY 1.3N-j!WWc’^•TŒj!WWO QH~§v„•î˜˜]ò~ÏN Y [XW(N†0 2.0•êR¨Y t N†_ˆY •Ùh7v„•î˜˜ÿ j!WWc’^•s°W(u(per-hookv„e¹lÕ•ÛˆLÿ N
g N†fôY v„pum;`'0 SæY ÿ XžR N†e°v„Œ u(NåcКØj!WWv„`'€ýÿ € eà— Oîe9Apacheg R¡Vhh8_Ã0
IPv6 e/c
W(b@g €ýY u1ApacheSïyûi •ÐˆLeö^“(APR library)cÐO›IPv6e/c v„|û~ßN ÿ ApachežØ‹¤O•u(IPv6O¦T,YWc¥[W0 L i s ÿ e n0 e V i V t i u a u H lo H o s
SæY N a m
t r r t l a s t0
v„ep[WW0W@N2(kÔY‚ÿ " L i s t e n [ 2 0 0 1 : d b 8 : : 1 ] : 8 0 8 0")0
•ÇnäVh
Apachev„j!WWs°W(SïNåQ™b •ÇnäVhv„_b_ ÿ _SQ…[¹mA~Ï[ƒ•ÛQeg R¡Vhb NÎg R¡VhmAQúv„eöP •ÛˆLY t 0 m o d SïNåu( c l u d eN-v„ I N C L U D
kÔY‚ÿ _ i n
‰ãg•N:g R¡VhzïS T+c Nä0 m o d _ e x t _ f i l t e rQA‹¸Y •èz ^•QE_S•ÇnäVhv„‰Ò‚rÿ 1Œau(CGIz ^•PZY t VhN h70
€
Y ‹íyÍ• ‹ï^”{T
•ÔVÞ~ÙmO‰ÈVhv„• ‹ïOá`os°W(]ò~Ïu(SSIe‡hc[žs°N†Y ‹íyÍS 0 {¡t TXSïNåR)u(kdRŸ€ý•ÛˆL[šR6N啾R0a ‰Âv„N •ô0
{€S N†‘M•n
_ˆY f m÷mÆv„‘M•n˜y]ò~Ï•ÛˆLN†{€S 0 ~Ï^8N§u m÷mÆv„ P o r tTŒ B i n d A d d r e s s‘M•n˜y]ò~ÏSÖmˆN†ÿ Su(NŽ~Ñ[šIPW0W@v„Sêgec NäN-c [šv„
L i s t e nce Näÿ e r N a m
r v
NÅu(NŽ‘Í[šT TŒ†ZbßN;g:v„‹ÆR+0
g,W0 Windows NT Unicode e/c
Apache2.0W(WindowsNTN v„e‡NöT Qh•èO•u(utf-8• x 0 •ÙN*dÍOvôc¥•lcbb ^•Bv„Unicodee‡Nö|û~ßÿ u1kdN:b@g NåWindowsNT(S bìWindows2000/XP/2003)N:
[‰ˆÅcÐO›N†Y ‹íŠ e/c •ÙN e/c vîRM g*mµvÖ
0 Windows95/98/ME|û~ßÿ VàN:[ƒNìNÍO•u(g:Vhg,W0v„Nãx ˜u•ÛˆLe‡Nö|û~ßv„dÍO0
kcR ˆh•¾_ ^“fôe°
PerlQ|[¹v„kcR ˆh•¾_ ^“(PCRE)0 b@g kcR ˆh•¾_ s°W(•ýO•u(N†fô_:Y'v„Perl 5 ‹ílÕ0
Apache2.0S T+N†
j!WWv„Xž_:
m o d _ s s l
Apache2.0N-v„e°j!WW0 kdj!WWf/OpenSSLcÐO›v„N N*SSL/TLSR [ÆSO‹®c¥Sã0
m o d _ d a v
Apache2.0N-v„e°j!WW0 kdj!WW~çb•N†HTTPR ^ _ SÑ^ TŒrHg,c§R6‰Äƒ ÿ u(NŽSÑ^ TŒ~ôb¤webQ…[¹0
m o d _ d e f l a t e
Apache2.0N-v„e°j!WW0 kdj!WWQA‹¸e/c kdRŸ€ýv„mO‰ÈVh‹÷lBv„˜u—bQ…[¹W(SÑ• RM•ÛˆLS‹•)ÿ Nå‚‚w •Q~Ü^&[½0
m o d _ a u t h _ l d a p
Apache2.0.41N-v„e°j!WW0 kdj!WWQA‹¸O•u(LDAPepcn^“[XP¨HTTPWúg,‹¤‹Áb@— v„Oá`o0 –•NK€ gev„SæNmN*j!WW_ l d a pR cÐO›N†•Þc¥l`TŒ~Ógœv„• Q²0
o d
m o d _ a u t h _ d i g e s t
R)u(QqN«Q…[X[žs°N†[ù•è•Ûz O ‹Ý• Q²v„˜•Y e/c 0
m o d _ c h a r s e t _ l i t e
Apache2.0N-v„e°j!WW0 •ÙN*‹ÕšŒj!WWQA‹¸W(N T v„[W{&–ÆNK•ô•ÛˆL•lcbTŒ‘Íe°• x 0
m o d _ f i l e _ c a c h e
Apache2.0N-v„e°j!WW0 •ÙN*j!WWS T+N†Apache1.3N- m o d _ m m a p _ s t a t i cj!WWv„RŸ€ýÿ SæY •ÛN keXžR N†• Q²€ýR›0
m o d _ h e a d e r s
kdj!WWW(Apache2.0N-fôQwpum;`'0 s°W(ÿ [ƒSïNåfôe9 o d _ p r o x yO•u(v„‹÷lBY4Oá`oÿ ^vSïNåg gaNöW0‹¾•n^”{TY4Oá`o0
m
m o d _ p r o x y
Nãt j!WW]ò~ψ«[ŒQh‘ÍQ™NåQER R)u(e°v„•ÇnäVh~Óg„v„O R¿ÿ N΀ [žs°N N*fôN:Sï—`v„HTTP/1.1Nãt j!WW0 SæY ÿr e°v„ y >‘M•nkµcÐO›N†fôQwSï‹û`'(€ N
< P o x
zÙp¹c§R6ÿ T eöÿ ‘Í•} < D i r e c t o r y " p r o x y : . . . " >c Näv„e¹lÕ]ò~ÏN Q•ˆ«e/c N†0 •ÙN*j!WWs°W(O•qgSO‹®e/c R N: p r o x y
5. MultiViews{—lÕ]ò~Ï•ÛˆLN†O S Nå
cÐO›fô[Œ•Žv„~Ógœÿ ^vcÐO›N†S bìe‡hcQ…[¹v„e°|{W‹ˆh0
m o d _ a u t o i n d e x
~Ï•Ç•êR¨}"_ T v„vî_UR ˆhs°W(S‘M•nN:O•u(HTMLˆhh<N΀ O•h<_ fôR n fpÿ € N QA‹¸fôN:~ÆS v„c’^•c§R6ÿ S bìrHg,c’^•TŒ• ‘M{&•Çnävî_UR ˆh0
m o d _ i n c l u d e
e°v„c Nä–ÆQA‹¸Oîe9žØ‹¤v„SSIQC} v„_ YËTŒ~Óg_h {~ÿ € N QA‹¸NåN;‘M•ne‡Nö‘Ìv„• ‹ïcÐy:TŒeö•ôh<_ v„‘M•nSÖNãSSIe‡hcN-v„vø^”•èR 0 kcR ˆh•¾_ (s°W
kcR ˆh•¾_ ‹ílÕ)v„‰ãg•TŒR ~Ä~ÓgœSïNåu( d _ i n c l u d ev„SØ‘Ï
m o $ 0 .. $ 9 SÖ_—0
m o d _ a u t h _ d b m
s°W(SïNåO•u( A u t h D B M T y p ec Näe/c Y yÍ|{O<DBMv„epcn^“0
g,e‡QA‹¸•êu1O•u(0 R SÑ0 •l•}ÿ OF_Ř{OÝuY‹Ñ€ •rT ÿ ‹æ‰Áÿ
‹Ñ€ Xðf 0
j!WW}"_ |c Nä}"_ |
^8‰Á•î˜˜ | ‹ÍlGˆh | zÙp¹[ü‚*
8. | c Nä}"_ |
^8‰Á•î˜˜ | ‹ÍlGˆh | zÙp¹[ü‚*
Apache HTTP Server rHg,2.2
Apache > HTTP Server > e‡hc > rHg,2.2
0 0 •ôŒ" |‹Ñ€ Xðf | g,{Ç‹Ñ€ ÿ †ZOMNå_…> | g,{Ç‹Ñz?[Œb eö•ôÿ ?^t?g ƒ·SÖg e°rHg,
< ?eå |
The Apache License, Version 2.0
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1Definitions
.
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of
this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty
percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated
documentation, and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or
attached to the work (an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations,
elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that
remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that
is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner.
For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not
limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the
purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not
a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within
the Work.
2Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge,
.
royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such
Derivative Works in Source or Object form.
3Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge,
.
royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such
license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution
(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging
that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License
for that Work shall terminate as of the date such litigation is filed.
4Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form,
.
provided that You meet the following conditions:
a . must give any other recipients of the Work or Derivative Works a copy of this License; and
You
bYou must cause any modified files to carry prominent notices stating that You changed the files; and
.
cYou must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the
.
Work, excluding those notices that do not pertain to any part of the Derivative Works; and
dIf the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices
.
contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a
NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display
generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text
from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of
Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated
in this License.
5Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under
.
9. the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any
separate license agreement you may have executed with Licensor regarding such Contributions.
6Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for
.
reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
7Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS
.
IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-
INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or
redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
8Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as
.
deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or
consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of
goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of
such damages.
9Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of
.
support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own
behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't
include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be
included on the same "printed page" as the copyright notice for easier identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
g,e‡QA‹¸•êu1O•u(0 R SÑ0 •l•}ÿ OF_Ř{OÝuY‹Ñ€ •rT‹Ñ€ ‹æ‰Áÿ0
ÿ Xðf
j!WW}"_ c Nä}"_
| |
^8‰Á•î˜˜ | ‹ÍlGˆh | zÙp¹[ü‚*
10. | c Nä}"_ |
^8‰Á•î˜˜ | ‹ÍlGˆh | zÙp¹[ü‚*
Apache HTTP Server rHg,2.2
Apache > HTTP Server > e‡hc > rHg,2.2
0 0 •ôŒ" |‹Ñ€ Xðf | g,{Ç‹Ñ€ ÿ
‘ÑkeVý | g,˜ug T fôe°ÿ 2006^t1g 4eå ƒ·SÖg e°rHg,
|
• ‹ÑN [‰ˆÅ
g,e‡NÅ– •ðApacheW(UnixTŒ|{Unix|û~ßN-v„• ‹ÑTŒ[‰ˆÅÿ W(WindowsN-v„• ‹ÑTŒ[‰ˆÅSïNåS€
W(Microsoft WindowsN-O•u(Apache0 QvNÖ^sSðSïNåS‰Á
”ˆ[ùry[š^sSðv„‹ôf e‡hc0
PÏQv[ƒ‹¸Y _ n•˜yvîN h7ÿ ApacheO•u( l i b t o o lTŒ a u t o c o n f^úzË• ‹Ñs¯Xƒ0
SG~§•èR 0
Y‚gœO`Sê•ÛˆL_ˆ v„rHg,SG~§(kÔY‚2.2.54!’2.2.55)ÿ ‹÷vôc¥•ó•lR0N —bv„
”ˆ[ù_Ã`%€ v„i‚•ð
N •} $ l y n x h t t p : / / h t t p d . a p a c h e . o r g / d o w n l o a d . c g i
‰ãS‹ $ g z i p - d h t t p d -NN . t a r . g z
$ t a r x v f h t t p d -NN . t a r
$ c d h t t p d -NN
‘M•n $ . / c o n f i g u r e - - p r e f i x =PREFIX
• ‹Ñ $ m a k e
[‰ˆÅ $ m a k e i n s t a l l
‘M•n $ v i PREFIX / c o n f / h t t p d . c o n f
mK‹Õ $ PREFIX / b i n / a p a c h e c t l - k s t a r t
QvN-NN_Ř{u(_SRMv„RorHg,S÷fÿNãÿ PREFIXf/g R¡Vhˆ«[‰ˆÅR0e‡Nö|û~ßN-v„•ï_„T ÿ Y‚gœl¡g c [šPREFIXÿ žØ‹¤O ˆÅR0 / u s r / l o c a l / a p a c h e 2
N —bNΕ ‹ÑTŒ[‰ˆÅApache httpdv„‰•lB_ YË‹æ~Æ– •ð• ‹ÑTŒ[‰ˆÅv„kÏN*keš¤0
‰•lB
• ‹ÑApachev„‰•lBY‚N ÿ
xÁvØzz•ô
_Ř{OÝ‹Ág 50MBNåN v„•êu1N4eöxÁvØzz•ô0 Apache[‰ˆÅ[ŒkÕT O S`cn10MB]æSóv„zz•ôÿ [ž–Ev„xÁvØzz•ô— lBO Và• ‹Ñ‹¾•nTŒf/T&[‰ˆÅ{,N e¹j!WW€ g b@
ANSI-C• ‹ÑVhSÊ• ‹Ñs¯Xƒ
•êu1•oNöWú‘ÑO (FSF)v„
_Ř{ˆÅg ANSI-C• ‹ÑVhÿ c¨ƒPO•u( GCC0 Y‚gœl¡g GCCÿ •£NH‰•xnOÝO•u(v„• ‹ÑVh{&T ANSIh QÆÿ € N P A T HN-_Ř{S T+c T W
m a k ev„•ï_„0
xnOÝQÆxnv„eö•ô
u1NŽHTTPSO‹®v„QC} •ýO u(R0eö•ôÿ g _ʼn•N†‰ãN N O`v„|û~ßb@O•u(v„eö•ôT keg:R60 W(WúNŽ•Q~Üeö•ôSO‹®(NTP)v„|û~ßN-ÿ N ‚,f/u( n t p d a t eb
NTPN;˜u0
NTP•oNöv„•De™‹÷S‰Á
Perl 5 [Sï• ]
g N›u(PerlQ™v„e/c • g,ÿ Y‚ p x sb m m a n a g e ÿ — ‰•Perl5‰ã‘ÊVh(5.003b NåN v„rHg,1•³Y N†)0 Y‚gœ|û~ßN-[XW(Y N*Perl‰ã‘ÊVhÿ kÔY‚g |û~
a d b
[‰ˆÅv„Perl 5ÿ c¨ƒPO`O•u( - - w i t h - p c o n • f ˜ygexnOÝ e• g,O•u(kcxnv„rHg,0 f Y‚gœ u r el¡g l¡b~R0Perl 5N_l¡Qs|ûÿ •Ù^vN _qTÍApache httpdv„• ‹ÑT
e r l i g u r c o n i g
Qsv„e/c • g,N €ýO•u(€ ]ò0
apr/apr-util >= 1.2
a p rTŒ a p r - u t i lS T+W(Apache httpdv„SшLn•Nãx N-ÿ ^vN W(~ÝY'Y ep`ÅQµN O•u(•ýN O Qús°•î˜˜0 _Sq6ÿ Y‚gœ a p rb a p r - u t i
O`v„ a p r/ a p r - u t i lSG~§R01.2rHg,ÿ b € httpdSUrìR _ • ‹Ñ0 ‰•O•u(SшLn•Nãx N-•ê^&v„ a p r/ a p r - u t i ln•Nãx •ÛˆL[‰ˆÅÿ O`_Å
# • ‹ÑTŒ[‰ˆÅ a p r 1 . 2
c d s r c l i b / a p r
. / c o n f i g u r e - - p r e f i x = / u s r / l o c a l / a p r - h t t p d /
m a k e
m a k e i n s t a l l
# • ‹ÑTŒ[‰ˆÅ a p r - u t i l 1 . 2
c d . . / a p r - u t i l
. / c o n f i g u r e - - p r e f i x = / u s r / l o c a l / a p r - u t i l - h t t p d / - - w i t h - a p r = / u s
m a k e
m a k e i n s t a l l
# ‘M•n h t t p d
c d . . / . . /
. / c o n f i g u r e - - w i t h - a p r = / u s r / l o c a l / a p r - h t t p d / - - w i t h - a p r - u t i l = /
12. API 0
^E^¦v„rHg,SG~§(O‹Y‚ÿ 2.2.55!’2.2.57)_ˆ[¹f 0 m a k e i n s t a l l v„•Çz N O e9Q™NûOU]ò~Ï[XW(v„e‡hc0 eå_×0 ‘M•ne‡Nö0 kdY ÿ _ SÑ€ N_O g =‘ÏQ|[
c o n f i u r
eö‘M•n0 j!WWAPI 0 Y'Y ep`ÅQµN ÿ O` €ýY O•u(N N N rHg,[ŒQhvøT v„ i g u r eT}NäˆLTŒ•ÐˆLeö‘M•nÿ € O`SŸgev„b@g j!WWN_ kc^8]åO0
c o n f
Y‚gœO`OÝ[XN†N N k![‰ˆÅT b u i l d[Pvî_UN-v„ c o n f i g . n i c ee‡Nöÿ SG~§ fôR ^snÑ0 •ÙN*e‡Nö|¾xnW0OÝ[XN†b@g eT}NäˆL0 •ÛˆL‘M•nv„‰•
c o n f i g u r [ùvî_Uh O`Sê— c
e°v„n•Nãx vî_Uh v„h9e‡NöY9^v•ÛˆLO`^ g v„Oîe9T ÿ q6T •ÐˆLN —bv„T}NäSsSï[Œb SG~§ÿ
$ . / c o n f i g . n i c e
$ m a k e
$ m a k e i n s t a l l
$ PREFIX / b i n / a p a c h e c t l - k g r a c e f u l - s t o p
$ PREFIX / b i n / a p a c h e c t l - k s t a r t
O`^”‹å`;f/W( e°rHg,v„Apacheb•Qekc_ •ÐˆLRMÿ [ù•ÙN*e°rHg,•ÛˆL•³Y v„0 ”ˆ[ùO`v„[ž–E•ÐˆLs¯Xƒv„mK‹Õ0 kÔY‚ÿ O`SïNåO•u(N N*N T v„ - - p r e f i x ‹¾
N N*N T v„vî_Uÿ ^vO•u(
Listenc NäW(N N*N T v„zïSãvÑT,0 ~Ï•ÇN kµeö•ôv„mK‹ÕNåSÑs°Sï€ý[XW(v„•î˜˜ÿ q6T Q•PZQúg T v„Q³[š0
g,e‡QA‹¸•êu1O•u(0 R SÑ0 •l•}ÿ OF_Ř{OÝuY‹Ñ€ •rT‹Ñ€ ‹æ‰Áÿ0
ÿ Xðf
j!WW}"_ c Nä}"_
| |
^8‰Á•î˜˜ | ‹ÍlGˆh | zÙp¹[ü‚*
13. | c Nä}"_ |
^8‰Á•î˜˜ | ‹ÍlGˆh | zÙp¹[ü‚*
Apache HTTP Server rHg,2.2
Apache > HTTP Server > e‡hc > rHg,2.2
0 0 •ôŒ" |‹Ñ€ Xðf | g,{Ç‹Ñ€ ÿ
‘ÑkeVý | g,˜ug T fôe°ÿ 2006^t1g 4eå ƒ·SÖg e°rHg,
|
T/R¨Apache
W(Windows NT/2000/XP/2003dÍO|û~ßN-ÿ ApacheN ‚,Någ R¡e¹_ •ÐˆLÿ b € W(Windows 95/98/MEN-Nåc§R6Sðz ^•e¹_ •ÐˆL0 ‹æ`Å‹÷S‰ÁNå
g R¡e¹_ •ÐˆLApacheTŒ
Nåc§R6Sðz ^•e¹
_ •ÐˆLApache0
W(UnixdÍO|û~ßN-ÿ h t t p dz ^•ON:N N*[ˆb¤•Ûz •ÐˆLÿ W(T SðN e-Y t ‹÷lB0 g,e‡hccÏ•ðN†Y‚OUŒ 0u(
h t t p d
Apachef/` h7T/R¨v„
Y‚gœ‘M•ne‡NöN- i s t e n[šNIv„f/žØ‹¤v„80zïSã(b 1024NåN )ÿ •£NHT/R¨Apache — ‰•rootgC–PNå [ƒ~Ñ[šW(rygCzïSãN 0 N eæg R¡Vh_ YËT/R¨^v[Œb N†N
L
[P•Ûz ge[Œb N N›‹øY‚O¦T,TŒVÞ^”[¢b7zï‹÷lBv„]åO0
v„QÆY dÍOÿ [ƒ R ^ú_ˆY h t t p dN;•Ûz NÍq6Nårootu(b7v„gC–P•ÐˆLÿ € [ƒv„[P•Ûz NåN N*•ƒONgC–Pv„u(b7
• bév„Y •ïY t j!WW•ÛˆLc§R60
Œ u( h t t p dSïbgˆLe‡Növ„c¨ƒPe¹lÕf/O•u(a c h e c t lc§R6• g,0 kd• g,‹¾•nN†W(gÐN›dÍO|û~ßN-kc^8•ÐˆL
a p h t t p db@_Å— v„s¯XƒSØ‘Ïÿh q6T p dNŒ•ÛR6e‡Nö0c h e c t lO
t t Œ u( a p a
b@g SÂepÿ Vàkdb@g u(NŽ t p dv„• ˜yY SJN_SïNåu(NŽ h e c t l 0 O`SïNåvôc¥Oîe9 c t l• g,ÿ e9SØ™–•èv„ H h T t T P dSïbgˆLe‡Növ„kcxnOM•nÿ N_SïN勾•
h t a p a c a p a c h e t p DSØ‘ÏO•NKc T
`;f/
T}NäˆLSÂepÿ O•NK g eH0
h t t p dˆ«Œ u(T {,N Nö‰•PZv„N‹`Å1f/b~R0^v‹ûSÖ t t p d . c o n f 0 kde‡Növ„OM•nf/W(• ‹Ñeö‹¾[šv„ÿ OFN_SïNåŒaN —b•Ùh7W(•ÐˆLeöu(
‘M•ne‡Nö h - f • ˜ygec [
/ u s r / l o c a l / a p a c h e 2 / b i n / a p a c h e c t l - f / u s r / l o c a l / a p a c h e 2 / c o n f / h t t p d
Y‚gœT/R¨•Çz N R kc^8ÿ g R¡Vh N ~ÈzïR y»^vQàNNzËSsQús°T}NäˆLcÐy:{&0 •Ùˆhy:g R¡Vh]ò~ÏT/R¨^v_ Y˕ЈL0 q6T O`1SïNåu(O`v„mO‰ÈVhS»•Þc¥O`v„g R¡Vh
D o c u m e n t R o o tvî_UN v„mK‹Õe‡hcSÊQv˜u—b”þc¥‘Ìv„Qv[ƒe‡hcv„g,W0Rog,0
T/R¨eöSÑu • ‹ï
Y‚gœApacheW(T/R¨•Çz N-SÑu N†•ôT}• ‹ïÿ [ƒ W(• QúRMbŠcÏ•ð•ÙN*• ‹ïv„Oá`of>y:W(~ÈzïN b € E r r o r L o gN-0 N N*g ^8N§u v„• ‹ïOá`of/" U n a b l
Q™QeR0
‰•u1NåN SŸVà• b ÿ
%Ï `óu1N N*rygCzïSãT/R¨g R¡OFl¡g Nårootu(b7•ÐˆL
%Ï T/R¨g R¡eö]ò~Ïg SæY v„Apache[žO‹W(•ÐˆLb QvNÖv„webg R¡Vh]ò~Ï~Ñ[šN†T h7v„zïSã
^8‰Á•î˜˜0
fôY •î˜˜v„‰ãQ³RžlÕÿ ‹÷S‰Á
–•|û~ßT/R¨eöT/R¨
Y‚gœO`^ g O`v„g R¡VhW(|û~ß‘ÍT/T NÍOÝc •ÐˆLr¶` ÿ O`^”‹åbŠ a c h e c t lv„Œ u(R QeR0O`v„|û~ßT/R¨e‡NöN-(• ^8N: r c . l o c a le‡Nöb
a p r c . Nvî_UN
Apache0 _Sq6ÿ W(kdNKRMÿ O`_Ř{OÝ‹ÁO`v„g R¡Vh]ò~Ï[Œb N†[‰QhTŒ‹¿•îgC–Pv„‹¾[š0
a p a c h e c t l• g,ˆ«‹¾‹¡N:SïNåu(OSysVR YËS • g,ÿ [ƒc¥S× s t a r t0 r e hs t t t a p r d[ù^”v„OáS÷ÿ pSÂepÿ ^vbŠ[ƒNì•û‹ÑN: e c t l•Þc¥R0• _Sv„R YË
t0 s t o b@Nå• ^8•ýSïNå c h
a p a
hÀgåO`v„|û~ß[ùkdv„|¾xn‰•lB0
˜•Y Oá`o
QsNŽ h t t a p a c h e c t lNåSÊQvNÖvøQse/c z ^•v„T}NäˆL• g˜yv„‹æ~ÆOá`o‹÷S‰Á
p dTŒ R¡VhTŒe/c z ^•˜u—b0 QvN-•ØS bìb@g v„–•ApacheSшLS SÑ^ v„
j!WWTŒ[ƒNìcÐO›v„ Näv„e‡hc0
c
g,e‡QA‹¸•êu1O•u(0 R SÑ0 •l•}ÿ OF_Ř{OÝuY‹Ñ€ •rT ÿ ‹æ‰Áÿ
‹Ñ€ Xðf 0
j!WW}"_ |c Nä}"_ |
^8‰Á•î˜˜ | ‹ÍlGˆh | zÙp¹[ü‚*
14. | c Nä}"_ |
^8‰Á•î˜˜ | ‹ÍlGˆh | zÙp¹[ü‚*
Apache HTTP Server rHg,2.2
Apache > HTTP Server > e‡hc > rHg,2.2
0 0 •ôŒ" |‹Ñ€ Xðf | g,{Ç‹Ñ€ ÿ
‘ÑkeVý | g,˜ug T fôe°ÿ 2006^t1g 6eå ƒ·SÖg e°rHg,
|
PkbTŒ‘ÍT/
g,e‡hcSÙ•ðN†W(|{Unix|û~ßN Y‚OUPkbTŒ‘ÍT/Apache 0 Windows NT/2000/XP/2003v„u(b7‹÷S‰Á R¡e¹_ •ÐˆLApache ÿ Windows 9x/MEu(b7R S‰Á
Någ W(c§R6SðN-•ÐˆLApache 0
{€NË
N:N†Pkbb € ‘Íe°T/R¨Apache ÿ O`_Ř{T kcW(•ÐˆLv„ t t p d•Ûz SÑ• OáS÷0 g N$yÍSÑ• OáS÷v„e¹lÕ0 {,N yÍe¹lÕf/vôc¥O•u(UNIXv„ k i l lT}NäT •ÐˆLN-v„•Ûz SÑ•
h
lèa R0O`v„|û~ߑ̕ЈLw@_ˆY h t t p d•Ûz 0 OFO`N ^”‹åvôc¥[ù[ƒNìN-v„NûOUN N*SÑ• OáS÷ÿ € Sꉕ[ù]ò~ÏW(
P i d F i l eN-‹°•}N N†•êŽ«PIDv„r6•Ûz SÑ• OáS÷0 N_1f/‹ôÿ O
z NåY v„NûOU•Ûz SÑ• OáS÷0 O`SïNåT r6•Ûz SÑ• N T E R HM0 P0 S R 1 ÿ b Nì•ÇN O Q?Q••ÛˆL‹æ~Æv„‹ôf 0
yÍOáS÷ÿ U U
O`SïNåu(N —b•Ùh7v„T}NägeT r6•Ûz SÑ• OáS÷ÿ
k i l l - T E R M ` c a t / u s r / l o c a l / a p a c h e 2 / l o g s / h t t p d . p i d `
{,NŒyÍe¹lÕf/O•u(N —b ‰•cÏ•ðv„ h t t p dNŒ•ÛR6SïbgˆLe‡Növ„ - k T}NäˆL• ˜yÿ s t o p0 r e s t a r t0 g r a a c p e a f cu hl0 e c tr hlc§R6•e g,geT l - s
g a t ct p fdNŒ•ÛR6S
u
NöO • •ÙN›• ˜y0
_SO`T h t t p dSÑ• OáS÷T ÿ O`SïNå•Ùh7ge‹ûSÖ[ƒv„•ÛˆL•Çz ÿ
t a i l - f / u s r / l o c a l / a p a c h e 2 / l o g s / e r r o r _ l o g
O`SïNåOîe9•ÙN›y:O‹Nå• ^”O`v„ S e r v e r i R o o ltTŒ
P d F i e‹¾•n0
zËSsPkb
OáS÷ÿ TERM
a p a c h e c t l - k s t o p
SÑ• T E R Mb s t o pOáS÷R0r6•Ûz SïNåO•[ƒzËR;g@k{b@g [P•Ûz 0 •Ù ‚±•9N N›eö•ôgeg@k{b@g [P•Ûz 0 q6T r6•Ûz •ê]ñN_• Qú0 b@g •ÛˆLN-v„‹÷
[ƒ‹÷lB0
O –Å‘ÍT/
OáS÷ÿ USR1
a p a c h e c t l - k g r a c e f u l
U S R 1b g r a c e^ú‹® lOáS÷O•_—r6•Ûz
f u ‘Íe°‹ûQe ‘M•ne‡Nö^v‘Íe°bS_ eå_×e‡Nö0 kÏ_SN N*[P•Û
[P•Ûz W([Œb [ƒNìs°W(v„‹÷lBT • Qú(Y‚gœNÖNìl¡g •ÛˆLg R¡ÿ O zËR;• Qú)0 r6•Ûz
z k{c‰ÿ r6•Ûz zËR;u(e°v„‘M•ne‡NöN§u N N*e°v„[P•Ûz ^vzËR;_ YËO:g e°v„‹÷lB0
‘ÍT/Nãx v„‹¾‹¡€ýY xnOÝMPM•Ûz c§R6c Näv„kc^8•ÐOÿ N_1f/W(‘ÍT/•Çz N-xnOÝg • _Sep‘Ïv„•Ûz TŒ~¿z NåTÍ^”[¢b7zïv„‹÷lB0 [ƒf/•Ùh7 a r t S e r v e r sv„ÿ Y‚
S t
g e°R ^úS t a r t S e r v e r sN*[P•Ûz ÿ R R ^úQú•³Y [Œb s°W(NûR¡v„[P•Ûz N*ep0 Vàkdÿ Nãx –dN†OÝg €ýY ~ôc g R¡Vhv„s°g • •}ep‘Ïv„[P•Ûz e r ÿ s
S t a r t S e r v Y
O•u( m o d _ s t a t u sv„u(b7O lèa R0W( U S R 1OáS÷SÑQúT ÿ g R¡Vhv„~ß‹¡Oá`ol¡g ˆ«n –ö0 Nãx ˆ«Q™b eâ€ý O`g R¡VheàlÕO:g e°‹÷lBv„eö•ô–M•ó
‘Ìÿ O•_—[ƒNìN O N"Y1)ÿ SÈ€ý•uNÎO`v„SÂepO S 0 N:N†PZR0•ÙN p¹ÿ [ƒ W(‘Íe°u b [P•Ûz v„•Çz N-ÿ W(scoreboardN OÝ[Xb@g [P•Ûz v„r¶` 0
m o d _ s t a t u s•ØO •£N›W(O –Å‘ÍT/RM1]ò~Ï_ YË€ l¡g ~Óg_O:g ‹÷lBv„[P•Ûz u(N N*" G"geh _×0
vîRMÿ eå_×nÚR¨• g,•ØeàlÕO•u( U S R 1gexn[šb@g Q™Qe˜„‘ÍT/eå_×v„[P•Ûz •ý]ò~Óg_0 b Nì^ú‹®O`W(SÑQúN† U S R 1OáS÷T {I_…N N*• _Sv„eö•ôÿ q6T Q•
gœ[ùNŽN N*z„^&u(b7ge‹ôÿ Y'•èR v„p¹QûY t W(10R ”ŸNKQ…[Œb ÿ •£NHO`^”‹åW(Y t eçv„eå_×RM{I_…15R ”Ÿ0
Y‚gœApache‘ÍT/eöSÑs°‘M•ne‡Nög ‹ïÿ •£NHr6•Ûz N O ‘ÍT/ÿ € f/b¥• ^v• Qú0 W(O –Å‘ÍT/v„`ÅQµN ÿ [ƒ W(Y t N-v„[P•Ûz [XW(v„`ÅQµN ~ôc [ƒv„[XW((1f/•£N
‰•lBW(Y t [Œ[ƒNìv„‹÷lBT "O –Å• Qú"v„[P•Ûz )0 Y‚gœO`‰•‘ÍT/g R¡Vhÿ •Ù [ü•ôN N›•î˜˜ÿ [ƒ N €ý~Ñ[šR0[ƒv„vÑT,zïSã0 W(bgˆL‘ÍT/NKRMÿ O`SïNåu( - t T}Näˆ
hÀgå‘M•ne‡Nö‹ílÕv„kcxn`'(S‰Á h t t p d)0 OF•ÙNÍq6N €ýOÝ‹Ág R¡VhN [šSïNåkcxnv„‘ÍT/0 N:N†N΋ílÕTŒ‹íNIN$e¹—bhÀgå‘M•ne‡Nöÿ O`SïNåu(N N*—^rootu(b7ge
h t t p d0
Y‚gœl¡g • ‹ïÿ [ƒ ‹ÕS»bS_ YWc¥[WTŒeå_×e‡Nöÿ ~ç€ Vàl¡g rootgC–P€ Y1•%(b f/VàN:s°W(•ÐˆLv„ d]ò~Ï~Ñ[šN†•ÙN›zïSã)0 Y‚gœf/VàN:QvNÖSŸVà•£NH1Sï€ýf/N
h t t p
•ne‡NöN§u v„• ‹ïÿ O`1^”_SW(•ÛˆLO –Å‘ÍT/NKRMe9kc•ÙN*• ‹ï0
zËSs‘ÍT/
OáS÷ÿ HUP
a p a c h e c t l - k r e s t a r t
T r6•Ûz SÑ• H U Pb r e s t a r tOáS÷O O•[ƒŒae6R0 T E R MOáS÷N h7g@c‰b@g v„[P•Ûz ÿ N T NKY W(NŽr6•Ûz g,Ž«^vN • Qú0 [ƒ‘Íe°‹ûQe‘
e°v„[P•Ûz ge~ç~íg R¡0
O•u( m o d _ s t a t u sv„u(b7O lèa R0W( H U POáS÷SÑQúT ÿ g R¡Vh~ß‹¡Oá`oO ˆ«n –ö0
Y‚gœO`‘ÍT/eö‘M•ne‡Nög ‹ïÿ •£NHr6•Ûz N O ‘ÍT/ÿ € f/b¥• ^v• Qú0 S‰ÁN e‡N-••QMv„e¹lÕ0
O –ÅPkb
OáS÷ÿ WINCH
a p a c h e c t l - k g r a c e f u l - s t o p
15. (Y‚gœNÖNìl¡g •ÛˆLg R¡ÿ O zËR;• Qú)0 q6T r6•Ûz R –d P i d F i l e^vPkbW(b@g zïSãN
z NÍq6~ç~í•ÐˆL^vvщÆkcW(Y t ‹÷lBv„[P•Ûz ÿ N eæb@g [P•Ûz [Œb NûR¡^v• Qúb € •…•Çu1 f u l S h u t d o w n T i m e o u tc Nä‰Ä[šv„eö•ôÿ r6
G r a c e
•Ûz •ý c¥e6R0 T E R MOáS÷^vˆ«_:R6• Qú0
W("O –Å"r¶` N ÿ T E R MOáS÷ O zËSsN-kbr6•Ûz TŒb@g [P•ÛzF 0i u1NŽ
P i d l e]ò~ψ«R –dÿ O` eàlÕO•u( a p a c h e c t lb h t t p dSÑ• ‹åOáS÷0
g r a c e f u l - s t o pQA‹¸O`T h t t p d[žO‹0 ‘M•nv„
eö•ÐˆLY N*vøT •ÙW([ùApache•ÛˆL^snÑSG~§v„eöP f/N N*—^^8g u(v„ry`'0 N •Ç[ƒW(gÐN›‘M•nv„`ÅQµN T h7Sï€ýO [ü•ô
N‰gaNö0
_Ř{lèa xnOÝ‹øY‚ ockfileTŒScriptSockNK|{v„xÁvØe‡NöS T+g R¡Vhv„PID ÿ ^vN €ýY [‰Qhv„Qq[X0 q6€ Y‚gœN N*‘M•nc Nä0 {,N e¹j!WWb c NECGIO•u(Nû
L
r¶` e‡Nöÿ _Ř{lèa xnOÝY N* t t p d•ÐˆL[žO‹NK•ôN O N‰b¢e‡Nö0
h
O`•Ø_Ř{–2kboW(v„zÞN‰gaNöÿ kÔY‚O•u(o t a t e l o g s˜Îh<v„{¡•Seå_×0 o t a t e N* o g s[žO‹O VþT eönÚR¨T N N*eå_×e‡NöSï€ýO [ü•ôN’vøx4WO[ùe¹v
r r •ÐˆLN-v„Y l
–D_Uÿ OáS÷TŒzÞN‰gaNö
zÞN‰gaNö0
W(Apache 1.2b9 NKRMÿ g _ˆY QsNŽ‘ÍT/TŒk{N¡OáS÷v„ QsNŽzÞN‰gaNöv„N N*{€SUcÏ•ðf/ÿ N N*eö•ôeOa v„•î˜˜ÿ Y‚gœN N›N‹`ÅW(N • _Sv„eö•ôb NåN `p_Sv„˜z
[ƒ OQúO`N g g v„SÍ^”ÿ Y‚gœT h7v„N‹`ÅW(`p_Sv„eö•ôSÑu ÿ R N O Qús°_ ^80 QíP •£N›båg "kcxn"ry`'‹¾•nv„OS|û~Óg„ÿ b Nì=‘Ï••QMN†[ƒNìv„Qús°0 OFP<_—
g N N›zÞN‰gaNö[XW(NŽ•Ùh7v„OS|û~Óg„N-0
O•u(rit xÁvØv„ S c o r e B o a r d F i l e1g c_WOScoreBoardv„oW(Sq–i0 •Ù SÑu W("bind: Address already in use"( H U PNKT )b "long lost child came h
T}• ‹ïÿ € T € R O O•g R¡VhN"Y1ScoreBoardv„N N*‹°_U0 b@Nåb Nì^ú‹®Y O•u(O –Å‘ÍT/ÿ Pv O•u(xl‘ÍT/0 •ÙN›•î˜˜_ˆ–¾‰ãQ³ÿ OF^x•Ðv„f/Y'Y ep~Óg„^vN — ‰
Nö0 € Y‚gœO`— ‰••Ùh7v„~Óg„ÿ O`SïNåS€ o r e B o a r d F i l ee‡hc0
S c
_SkÏN*[P•Ûz W(N N*HTTPv„c ~í•Þc¥(KeepAlive)N-m‰SÊR0{,NŒN*^vSÑv„‹÷lBeöÿ b@g v„~Óg„•ýO b Y b [XW(zÞN‰r¶` v„•î˜˜0 [ƒ W(‹ûSÖN†‹÷lB€ l¡g ‹ûSÖNûO
R;• Qú0 •ÙN*OîY [ùNŽ1.2ge‹ôge_—Y*fZN†0 OFVàN:c ~í•Þc¥v„[¢b7zï]ò~Ï€ †QR0•Q~Ü^öeöTŒg R¡Vh•…eöO • b |{O<v„`ÅQµÿ b@Nåt ‹ºN ‹ôÿ •ÙN f/N N*Y*Y'v„•î˜
NNN_l¡g NûOU_qTÍÿ W(N N*mK‹ÕhHO‹N-g R¡VhW(N yÒNKQ…ˆ«‘ÍT/N†20k!ÿ € [¢b7zïStb RŸv„mO‰ÈN†•QzÙÿ € N l¡g NûOUx4c_v„VþrGb zze‡hc0
g,e‡QA‹¸•êu1O•u(0 R SÑ0 •l•}ÿ OF_Ř{OÝuY‹Ñ€ •rT ÿ ‹æ‰Áÿ
‹Ñ€ Xðf 0
j!WW}"_ |c Nä}"_ |
^8‰Á•î˜˜ | ‹ÍlGˆh | zÙp¹[ü‚*
16. | c Nä}"_ |
^8‰Á•î˜˜ | ‹ÍlGˆh | zÙp¹[ü‚*
Apache HTTP Server rHg,2.2
Apache > HTTP Server > e‡hc > rHg,2.2
0 0 •ôŒ" |‹Ñ€ Xðf | g,{Ç‹Ñ€ ÿ
‘ÑkeVý | g,˜ug T fôe°ÿ 2006^t1g 1eå ƒ·SÖg e°rHg,
|
‘M•ne‡Nö
g,˜u– •ðN†Apacheg R¡Vhv„‘M•ne‡Nö0
N;‘M•ne‡Nö
vøQsj!WW vøQsc Nä
• m o d _• m i m e < I f D e f i n e >
• I n c l u d e
• T y p e s C o n f i g
Apachev„‘M•ne‡Nöf/S T+‚å^rc Näv„~¯e‡g,e‡Nö0 N;‘M•ne‡Nö• ^8Së h t t p d . c o n f ÿ QvOM•nf/• ‹Ñeöxn[šv„ÿ OFSïNåu(T}NäˆLSÂep Includec NäTŒ• ‘M
- f gee9SØ0 SæY ÿ
{&–DR ‹¸Y QvNÖ‘M•ne‡Nö0 NûOU‘M•ne‡Nö•ýSïNåO•u(NûOUc Nä0 Sêg W(T/R¨b ‘Íe°T/R¨ApacheT ÿ N;‘M•ne‡Növ„fôe9bMO u eH0
g R¡Vh•ØO ‹ûSÖN N*S T+MIMEe‡Nö|{W‹v„e‡Nöÿ Qve‡NöT u1
TypesConfigc Näxn[šÿ žØ‹¤P<f/ m i m e . t y p e s 0
‘M•ne‡Növ„‹ílÕ
Apache‘M•ne‡Növ„kÏN ˆLS T+N N*c Näÿ W(ˆL>O•u(SÍeœg`""SïNåˆhy:~íˆLÿ OFf/SÍeœg`N N N ˆLNK•ôN €ýg NûOUQvNÖ[W{&(S bìzzv}[W{&)0
‘M•ne‡NöN-v„c Näf/N S:R Y' Q™v„ÿ OFf/c Näv„SÂep(argument)• ^8f/Y' Q™eOa v„0 Nå"#"_ Y4v„ˆLˆ«‰ÆN:lè‰ã^vˆ«_ýue0 lè‰ãN €ýQús°W(c Näv„T •¹0 zzv}ˆL
v}[W{& ˆ«_ýueÿ VàkdSïNå‘Çu(•)•ÛNåOÝc ‘M•nBk!v„n fp0
SïNåu( a p a c h e c t l c o n f i g t e s t b € T}NäˆL• ˜y - t hÀgå‘M•ne‡NöN-v„• ‹ïÿ € eà˜{T/R¨Apacheg R¡Vh0
j!WW
vøQsj!WW vøQsc Nä
• m o d• _ s o < I f M o d u l e >
• L o a d M o d u l e
Apachef/j!WWS v„g R¡Vhÿ •Ùa Tsw@h8_ÃN-SêS T+[žs°g Wúg,RŸ€ýv„j!WW0 biURŸ€ýSïNåON: •}0 žØ‹¤`ÅQµN ÿ Sêg
j!WWR¨` R base~Äv„j!WWˆ«• ‹Ñ•ÛN†g R¡Vh0 Y‚gœg R¡Vh
DSOj!WWÿ •£NHT j!WWSïNårìzË• ‹Ñÿ ^vSï–•eöu(
• ‹ÑeöS T+N† LoadModulec NäR •}ÿ T&R ÿ ‰•XžR b R –dj!WW_Ř{‘Íe°• ‹ÑetN*Apache0 u(NŽry[šj!WWv„c NäSïN
<IfModule>c NäS T+•wgeÿ O•NKg gaNöW0u eH0
u(T}NäˆLSÂep - l SïNågåw ]ò~Ï• ‹ÑR0g R¡VhN-v„j!WW0
c Näv„Ou(Wß
vøQsj!WWvøQsc Nä
• < D i r e c t o r y >
• < D i r e c t o r y M a t c h >
• < F i l e s >
• < F i l e s M a t c h >
• < L o c a t i o n >
• < L o c a t i o n M a t c h >
• < V i r t u a l H o s t >
N;‘M•ne‡NöN-v„c Nä[ùetN*g R¡Vh•ýg eH0 Y‚gœO`Sê`óe9SØgÐN •èR v„‘M•nÿ O`SïNåbŠc Nä]LQeR0
<Directory>0 <DirectoryMatch>0 <Files>0 <FilesMatch>0
<Location>0 <LocationMatch>‘M•nkµN-ÿ •Ùh71SïNå–PR6c Näv„Ou(WßN:e‡Nö|û~ßN-v„gÐN›OM•nb ry[šv„URL0 •ÙN›‘M•nkµ•ØSïNå•ÛˆL]LYWÿ Nå•ÛˆLfô|¾~
Apache•ØQwY T eöe/c Y N*zÙp¹v„€ýR›ÿ †ZbßN;g:0 <VirtualHost>‘M•nkµN-v„c NäNÅ[ù‹åkµN-v„ry[šzÙp¹(†ZbßN;g:)g eH0
yðN:
†}q6Y'Y epc NäSïNåS T+W(Nûa v„‘M•nkµN-ÿ OFf/gÐN›c NäNÅW(gÐN›ry[šv„ƒ VôQ…bMg a NI0 kÔY‚ÿ c§R6•Ûz ^úzËv„c NäNÅW(N;g R¡Vhƒ VôQ…g eH0 ‰•gå
Ou(Wߘy0 fô‹æ~Æ•De™SïNågåw
TêN›‘M•nkµN-ÿ SïNågåw ‹åc Näv„ ‘M•nkµ‹ôf 0
.htaccess e‡Nö
vøQsj!WWvøQsc Nä
• A c c e s s F i l e N a m e
• A l l o w O v e r r i d e
ApacheSïNåO•u(R ^ W(etN*•QzÙe‡Növî_Uh ~Óg„N-v„rykŠe‡Nöge•ÛˆLR ec‘M•nÿ •ÙN›rykŠv„e‡Nö• ^8Së . h t a c AccessFileNamec Nägee9SØ[ƒv„T [W0
c e s s ÿ OFf/N_SïNåu( . h
e‡NöN-c Näv„Ou(Wßf/[Xe>[ƒv„•£N*vî_USÊQvb@g [Pvî_U0 . h t a c c e s se‡Növ„‹ílÕN N;‘M•ne‡NövøT 0 u1NŽ[ùkÏk!‹÷lB•ýO ‹ûSÖ . h t a c c
17. AllowOverridec NägeQ³[šTêN›c NäSïNåW( . h t a c
eH0
.htaccess c SW0
g Qs . h t a c c e s se‡Nöfô‹æ~Æv„•De™ÿ SïNågåw
g,e‡QA‹¸•êu1O•u(0 R SÑ0 •l•}ÿ OF_Ř{OÝuY‹Ñ€ •rT ÿ ‹æ‰Áÿ
‹Ñ€ Xðf 0
j!WW}"_ |c Nä}"_ |
^8‰Á•î˜˜ | ‹ÍlGˆh | zÙp¹[ü‚*
18. | c Nä}"_ |
^8‰Á•î˜˜ | ‹ÍlGˆh | zÙp¹[ü‚*
Apache HTTP Server rHg,2.2
Apache > HTTP Server > e‡hc > rHg,2.2
0 0 •ôŒ" |‹Ñ€ Xðf | g,{Ç‹Ñ€ ÿ
‘ÑkeVý | g,˜ug T fôe°ÿ 2006^t1g 5eå ƒ·SÖg e°rHg,
|
‘M•nkµ([¹Vh)
‘M•ne‡NöN-c Näv„Ou(ƒ VôSï€ýf/etN*g R¡Vhÿ N_Sï€ýf/ry[šv„vî_U0 e‡Nö0 N;g:0 URL0 g,e‡– •ðY‚OUO•u(‘M•nkµ([¹Vh)NåSÊ . h t a c c e s se‡Nögee9SØ‘M•nc
‘M•nkµ([¹Vh)v„|{W‹
vøQsj!WW vøQsc Nä
• c o r e • < D i r e c t o r y >
• m o d _ • e r s i < n i
v o D r e c t o r y M a t c h >
• m o d _ • r o x y< F i
p l e s >
• < F i l e s M a t c h >
• < I f D e f i n e >
• < I f M o d u l e >
• < I f V e r s i o n >
• < L o c a t i o n >
• < L o c a t i o n M a t c h >
• < P r o x y >
• < P r o x y M a t c h >
• < V i r t u a l H o s t >
[¹Vhg N$yÍWúg,|{W‹0 Y'Y ep[¹Vhf/”ˆ[ùT N*‹÷lBv„ÿ S T+NŽQvN-v„c NäNÅ[ùN ‹å[¹VhS9‘Mv„‹÷lB•wOu(ÿ € [¹Vh
<IfDefine>0 <IfModule>0 <IfVersion>NÅW(T/R¨TŒ‘Íe°
T/R¨N-•wOu(ÿ Y‚gœW(T/R¨eöc [šv„gaNöb zËÿ R QvN-v„c Nä[ùb@g v„‹÷lB•ýg eHÿ T&R ˆ«_ýue0
<IfDefine>[¹VhN-v„c NäSêg W(t t p dT}NäˆLN-‹¾[šN†ry[šv„SÂepT bMg eH0 N O‹N-ÿ Sêg W(g R¡Vhu(
h h t t p d - D C l o s e d F o r N o
p¹ÿ
< I f D e f i n e C l o s e d F o r N o w >
R e d i r e c t / h t t p : / / o t h e r s e r v e r . e x a m p l e . c o m /
< / I f D e f i n e >
<IfModule>[¹Vh_ˆvøO<ÿ OFf/QvN-v„c NäSêg _Sg R¡VhT/u(ry[šv„j!WWeöbMg eH(b f/ˆ«—Y` W0• ‹Ñ•ÛN†g R¡Vhÿ b f/ˆ«R¨` ˆÅ•}•ÛN†g R¡Vh)ÿ lèa ÿ ‘M•ne‡
c Nä oadModuleˆL_Ř{W(Qús°W(kd[¹VhNKRM0 •ÙN*[¹Vh^”‹åNÅu(NŽO`^ g eà‹ºry[šj!WWf/T&[‰ˆÅÿ ‘M•ne‡Nö•ý€ýkc^8•Ð•lv„W:T ÿ € N ^”‹åu(NŽ[¹VhN-
L
˜{u eHv„W:T ÿ VàN:[ƒO b‘R6|{O<j!WWl¡b~R0NK|{v„g u(Qú• Oá`o0
N O‹N-ÿMimeMagicFilesc NäNÅ_Sm o d _ m i m e _ m a g i cj!WWT/u(eöbMg eH0
< I f M o d u l e m o d _ m i m e _ m a g i c . c >
M i m e M a g i c F i l e c o n f / m a g i c
< / I f M o d u l e >
<IfVersion>c NäN<IfDefine>TŒ<IfModule>_ˆvøO<ÿ OFf/QvN-v„c NäSêg _SkcW(bgˆLv„g R¡VhrHg,N c [šv„rHg,‰•lBvø{&eöbMg eH0 •ÙN*j!WWˆ«‹¾‹¡u(
W(N N*[XW(Y N*N T httpdrHg,v„Y'W‹•Q~ÜN-— ‰•R R+”ˆ[ùN T rHg,O•u(N T ‘M•nv„`ÅQµ0
< I f V e r s i o n > = 2 . 1 >
# NÅW(rHg,šØNŽ 2.1.0 v„eöP bMu eH
< / I f V e r s i o n >
<IfDefine>0 <IfModule>0 <IfVersion>•ýSïNåW(gaNöRMR N N*"!"Nå[žs°gaNöv„T&[šÿ € N •ýSïNå]LYWNå[žs°fôY gBv„‘M•n0
e‡Nö|û~ßTŒ•Q~Üzz•ô
g ^8u(v„‘M•nkµf/”ˆ[ùe‡Nö|û~ßTŒ•Q~Üzz•ôry[šOM•nv„‘M•nkµ0 ™–QH_Ř{t ‰ãe‡Nö|û~ßTŒ•Q~Üzz•ô•ÙN$N*i‚_õv„S:R+ÿ e‡Nö|û~ßf/c dÍO|û~ßb@w ‰Áv„xÁv؉ÆVþÿ k
Nö|û~ßN-ÿ ApacheO ˆ«žØ‹¤[‰ˆÅR0 / u s r / l o c a l / a p a c h e 2 ÿ W(Windowse‡Nö|û~ßN-ÿ ApacheO ˆ«žØ‹¤[‰ˆÅR0 " C : / P r o g r a m
f/SÍeœg`ON:•ï_„v„R –”{&ÿ SsO•f/W(WindowsN-)0 vøSÍÿ •Q~Üzz•ôf/•QzÙˆ«webg R¡VhSÑ• NåSʈ«[¢b7W(mO‰ÈVhN-b@w R0v„‰ÆVþ0 b@Nå•Q~Üzz•ôN-v„•ï_„ / d
‹¤[‰ˆÅ•ï_„v„`ÅQµN [ù^”NŽUnixe‡Nö|û~ßN-v„•ï_„ / u s r / l o c a l / a p a c h e 2 / h t d o c s / d i r / 0 u1NŽ•Q˜uSïNåNÎepcn^“b QvNÖW0e¹R¨` u
e‡Nö|û~ß[¹Vh
<Directory>TŒ<Files>c NäN Qvvø^”v„kcR ˆh•¾_ <DirectoryMatch>TŒ<FilesMatch>)N •wOu(NŽe‡Nö|û~ßv„ry[š•èR <Directory>‘M•nkµN-v„c NäOu(NŽc
rHg,( 0
.htaccesse‡NöSïN啾R0T h7v„eHgœ0 N O‹N-ÿ
v„e‡Nö|û~ßvî_USÊQvb@g [Pvî_Uÿ / v a r / w e b / d i r 1 SÊQvb@g [Pvî_Uˆ«QA‹¸•ÛˆLvî_U}"_ 0
< D i r e c t o r y / v a r / w e b / d i r 1 >
O p t i o n s + I n d e x e s
< / D i r e c t o r y >
<Files>‘M•nkµN-v„c NäOu(NŽry[šv„e‡NöT ÿ € eà‹º•ÙN*e‡Nö[ž–E[XW(NŽTêN*vî_U0 N O‹N-v„‘M•nc NäY‚gœQús°W(‘M•ne‡Növ„N;g R¡Vhkµÿ R O bÒ~Ý[
p r i v a t e . h t m lv„‹¿•î0
< F i l e s p r i v a t e . h t m l >
19. D e n y f r o m a l l
< / F i l e s >
<Files>TŒ<Directory>kµv„~ÄT SïNåOu(NŽe‡Nö|û~ßN-v„ry[še‡Nö0 N O‹N-v„‘M•nO bÒ~Ý[ù / v a r / w e b / d i r 1 / p r i v a t e . h t m l
p r i v a t e . h t m l{INûOU / v a r / w e b / d i r 1 / vî_UN p r i v a t e . h t m lv„‹¿•î0
< D i r e c t o r y / v a r / w e b / d i r 1 >
< F i l e s p r i v a t e . h t m l >
O r d e r a l l o w , d e n y
D e n y f r o m a l l
< / F i l e s >
< / D i r e c t o r y >
•Q~Üzz•ô[¹Vh
<Location>c NäN Qvvø^”v„kcR ˆh•¾_ <LocationMatch>)N •wOu(NŽ•Q~Üzz•ôv„ry[š•èR 0 N O‹N-v„‘M•nO bÒ~Ý[ùNûOUNå" / p r i v a t e"_ Y4v„URL•ï_„v„
rHg,(
y o u r s i t e . e x a m p l e . c o m / p r i v a t e0 h t t p : / / y o u r s i t e . e x a m p l e . c o m / p r i v a t e 1
< L o c a t i o n / p r i v a t e >
O r d e r A l l o w , D e n y
D e n y f r o m a l l
< / L o c a t i o n >
<Location>c NäN e‡Nö|û~ßeàQsÿ N O‹o y:N†Y‚OU ry[šv„URLf R0ApacheQ…•èv„Y o t dVh s t a t u s ÿ € ^vN ‰•lBe‡Nö|û~ßN-xn[ž[XW( s e r v e r
m _
< L o c a t i o n / s e r v e r - s t a t u s >
S e t H a n d l e r s e r v e r - s t a t u s
< / L o c a t i o n >
• ‘M{&TŒkcR ˆh•¾_
<Directory>0 <Files>0 <Location>c NäSïNåO•u(N Ch QÆ^“N-v„ f n m a t c h|{O<v„shell˜Îh<v„• ‘M{&0 "*"S9‘MNûOU[W{&N2ÿ "?"S9‘MNûOUSUN*v„[W{&ÿ "
NûOU[W{&ÿ {&S÷"/"N ˆ«NûOU• ‘M{&b@S9‘Mÿ b@Nå_Ř{f>_ W0O•u(0
Y‚gœ— ‰•fôY gBv„S9‘Mÿ •ÙN›[¹Vh•ýg N N*[ù^”v„kcR rHg,ÿ
<DirectoryMatch>0 <FilesMatch>0 <LocationMatch> ÿ SïNåO•u(N PerlQ|[¹v„kcR ˆh•¾_ ÿ NåcÐO›fôY
‘M•nkµv„T ^v•èR QsNŽO•u(kcR ˆh•¾_ O Y‚OUOu(NŽ‘M•nc Näv„Q…[¹0
v„S9‘M0 OFf/•Ø_Ř{lèa N —b
N O‹O•u(—^kcR ˆh•¾_ v„• ‘M{&gee9SØb@g u(b7vî_Uv„‘M•nÿ
< D i r e c t o r y / h o m e / * / p u b l i c _ h t m l >
O p t i o n s I n d e x e s
< / D i r e c t o r y >
N O‹O•u(kcR ˆh•¾_ N k!`'bÒ~Ý[ùY yÍVþ_be‡Növ„‹¿•îÿ
< F i l e s M a t c h . ( ? i : g i f | j p e ? g | p n g ) $ >
O r d e r a l l o w , d e n y
D e n y f r o m a l l
< / F i l e s M a t c h >
NÀNH`ÅQµN u(NÀNH
• béO•u(e‡Nö|û~ß[¹Vh•Øf/O•u(•Q~Üzz•ô[¹VhQv[ž_ˆ{€SU0 _Sc Nä^”‹åOu(NŽe‡Nö|û~ßeöÿ `;f/u(
<Directory>b <Files>ÿ € _Sc NäOu(NŽN [XW(NŽe‡Nö|û~ßv„[ùŒaeö
<Location>ÿ kÔY‚N N*u1epcn^“u b v„•Q˜u0
<Location>S»–PR6[ùe‡Nö|û~ßN-v„[ùŒav„‹¿•îÿ VàN:‹¸Y N T v„•Q~Üzz•ô•ï_„Sï€ýO f R0T N N*e‡Nö|û~ßvî_Uÿ N΀ [ü•ôO`v„‹¿•î–PR6
~Ý[ùN ‰•‹ÕVþu(
< L o c a t i o n / d i r / >
O r d e r a l l o w , d e n y
D e n y f r o m a l l
< / L o c a t i o n >
N •ð‘M•n[ù h t t p : / / y o u r s i t e . e x a m p l e . c o m / d i r / ‹÷lBv„xn•wOu(0 OFf/‹¾`óW(N N*N S:R Y' Q™v„e‡Nö|û~ßN-ÿ •ÙN*‹¿•
<Directory>c NäbMO w kcOu(NŽ[ù•ÙN*OM•nv„NûOU_b_ v„‹÷lB0 OFf/g N N*O‹Y ÿ 1f/Unixe‡Nö|û~ßN-v„{&S÷•Þc¥(•o•Þc¥)ÿ {&S÷•Þc¥SïNåO•T N N*vî_UQús
Y N*OM•n0Directory>c Nä N ‘Í‹¾•ï_„T € vôc¥•ýŽ*{&S÷•Þc¥ÿ Vàkdÿ [ùNŽ[‰Qh‰•lBg šØv„ÿ ^”‹åu(
< Optionsc Näy•kb[ù{&S÷•Þc¥v„•ýŽ*0
N ‰•‹¤N:O•u(Y' Q™eOa v„e‡Nö|û~ß1eàb@Œ N†ÿ VàN:g _ˆY e¹lÕSïNå N T v„•Q~Üzz•ô•ï_„f R0T N N*e‡Nö|û~ß•ï_„ÿ b@Nåÿ ^”_S=Sï€ýO•u(e‡Nö
Y ÿ 1f/bŠ‹¿•î–PR6e>W( < L o c a t i o n / >‘M•nkµN-SïNå_ˆ[‰QhW0Ou(NŽ–dN†gÐN›ry[šURLNåY v„b@g URL0
†ZbßN;g:
<VirtualHost>[¹VhOu(NŽry[šv„†ZbßN;g:ÿ N:T N N*g:VhN Qwg N T ‘M•nv„Y N*N;g:cÐO›e/c 0 ‹æ‰Á
†ZbßN;g:e‡hc0
Nãt
<Proxy>TŒ<ProxyMatch>[¹VhN-v„c NäNÅOu(NŽ•m•Ç d _ p r o x yNãt g R¡Vh‹¿•îv„0 N c [šURLS9‘Mv„zÙp¹0 N O‹N-v„‘M•nO bÒ~Ý• •ÇNãt g R¡Vh‹¿•î
o
< P r o x y h t t p : / / c n n . c o m / * >
O r d e r a l l o w , d e n y
D e n y f r o m a l l
< / P r o x y >
QA‹¸O•u(TêN›c Näÿ