auth.xml.ja

来自「Apache HTTP Server 是一个功能强大的灵活的与HTTP/1.1相」· JA 代码 · 共 388 行 · 第 1/2 页

JA
388
字号
<?xml version='1.0' encoding='iso-2022-jp' ?><!DOCTYPE manualpage SYSTEM "../style/manualpage.dtd"><?xml-stylesheet type="text/xsl" href="../style/manual.ja.xsl"?><!-- English Revision: 106090:151405 (outdated) --><!-- Copyright 2003-2004 The Apache Software Foundation 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.--><manualpage metafile="auth.xml.meta"><parentdocument href="./">How-To / $B%A%e!<%H%j%"%k(B</parentdocument><title>$BG'>Z!">5G'!"%"%/%;%9@)8f(B</title><summary>    <p>$B!VG'>Z!W$H$O!"C/$+$,<+J,$OC/$G$"$k$+$r<gD%$7$?>l9g$K!"(B    $B$=$l$r3NG'$9$k$?$a$NA42aDx$r;X$7$^$9!#!V>5G'!W$H$O!"(B    $BC/$+$,9T$-$?$$>l=j$K9T$1$k$h$&$K!"$"$k$$$OM_$7$$>pJs$r(B    $BF@$k$3$H$,$G$-$k$h$&$K$9$k$?$a$NA42aDx$r;X$7$^$9!#(B</p></summary>  <section id="related"><title>$B4XO"$9$k%b%8%e!<%k$H%G%#%l%/%F%#%V(B</title>    <related>      <modulelist>        <module>mod_auth</module>        <module>mod_access</module>      </modulelist>      <directivelist>        <directive module="mod_access">Allow</directive>        <directive module="mod_auth">AuthGroupFile</directive>        <directive module="core">AuthName</directive>        <directive module="core">AuthType</directive>        <directive module="mod_auth">AuthUserFile</directive>        <directive module="mod_access">Deny</directive>        <directive module="core">Options</directive>        <directive module="core">Require</directive>      </directivelist>    </related></section><section id="introduction"><title>$B$O$8$a$K(B</title>    <p>$B$b$75!L)$N>pJs$d!"$4$/$4$/>/?t%0%k!<%W$N?M8~$1$N>pJs$r(B    $B%&%'%V%5%$%H$KCV$/$N$G$"$l$P!"$3$NJ8=q$K=q$+$l$F$$$k(B    $B%F%/%K%C%/$r;H$&$3$H$G!"$=$N%Z!<%8$r8+$F$$$k?M$?$A$,(B    $BK>$_$N?M$?$A$G$"$k$3$H$r3N<B$K$G$-$k$G$7$g$&!#(B</p>    <p>$B$3$NJ8=q$G$O!"B?$/$N?M$,:NMQ$9$k$G$"$m$&!"(B    $B%&%'%V%5%$%H$N0lItJ,$rJ]8n$9$k!V0lHLE*$J!W(B    $BJ}K!$K$D$$$F%+%P!<$7$F$$$^$9!#(B</p></section><section id="theprerequisites"><title>$B=`Hw(B</title>    <p>$B$3$NJ8=q$G<h$j07$o$l$k%G%#%l%/%F%#%V$O!"(B    $B%a%$%s%5!<%P@_Dj%U%!%$%k(B ($BIaDL$O(B     <directive module="core" type="section">Directory</directive>    $B%;%/%7%g%sCf(B) $B$+!"$"$k$$$O%G%#%l%/%H%jKh$N@_Dj%U%!%$%k(B     (<code>.htaccess</code> $B%U%!%$%k(B) $B$+$GMQ$$$^$9!#(B</p>    <p><code>.htaccess</code> $B%U%!%$%k$rMQ$$$k$N$G$"$l$P!"(B    $B$3$l$i$N%U%!%$%k$KG'>ZMQ$N%G%#%l%/%F%#%V$rCV$1$k$h$&$K(B    $B%5!<%P$N@_Dj$r$7$J$$$H$$$1$J$$$G$7$g$&!#$3$l$O(B    <directive module="core">AllowOverride</directive>    $B%G%#%l%/%F%#%V$G2DG=$K$J$j$^$9!#(B    <directive module="core">AllowOverride</directive>    $B%G%#%l%/%F%#%V$G$O!"%G%#%l%/%H%jKh$N@_Dj%U%!%$%kCf$KCV$/$3$H$N$G$-$k(B    $B%G%#%l%/%F%#%V$r!"$b$7$"$l$P!";XDj$7$^$9!#(B</p>    <p>$BG'>Z$K$D$$$FOC$r?J$a$F$$$k$N$G!"<!$N$h$&$J(B    <directive module="core">AllowOverride</directive>    $B%G%#%l%/%F%#%V$,I,MW$K$J$k$G$7$g$&!#(B</p>    <example>      AllowOverride AuthConfig    </example>    <p>$B$=$&$G$J$/!"%a%$%s%5!<%P@_Dj%U%!%$%k$NCf$K(B    $BD>@\CV$/$N$G$"$l$P!"EvA3$J$,$i$=$N%U%!%$%k$X$N=q$-9~$_(B    $B8"8B$r;}$C$F$$$J$1$l$P$J$i$J$$$G$7$g$&!#(B</p>    <p>$B$^$?!"$I$N%U%!%$%k$,$I$3$KJ]B8$5$l$F$$$k$+CN$k$?$a$K!"(B    $B%5!<%P$N%G%#%l%/%H%j9=B$$K$D$$$F>/$7CN$C$F$*$/(B    $BI,MW$,$"$k$G$7$g$&!#(B    $B$3$l$O$=$s$J$KFq$7$/$J$$$N$G!"$3$NJ8=qCf$G(B    $B%G%#%l%/%H%j9=B$$K$D$$$FCN$C$F$*$/I,MW$,$"$k>lLL$G$O!"(B    $BL@$i$+$K$J$k$h$&$K$7$^$9!#(B</p></section><section id="gettingitworking"><title>$BF0:n$5$;$k(B</title>    <p>$B$G$O!"%5!<%P>e$N$"$k%G%#%l%/%H%j$r%Q%9%o!<%I$GJ]8n$9$k(B    $B4pK\<j=g$r<($7$^$9!#(B</p>    <p>$B%Q%9%o!<%I%U%!%$%k$r:n$kI,MW$,$"$j$^$9!#(B    $B$3$N%U%!%$%k$O!"%&%'%V$+$i%"%/%;%9$G$-$k>l=j$K(B    $BCV$/$Y$-$G$O$"$j$^$;$s!#B>$N?M$,%Q%9%o!<%I%U%!%$%k$r(B    $B%@%&%s%m!<%I$G$-$J$$$h$&$K$9$k$?$a$G$9!#Nc$($P!"(B    <code>/usr/local/apache/htdocs</code> $B$G%I%-%e%a%s%H$r(B    $BDs6!$7$F$$$k$N$G$"$l$P!"%Q%9%o!<%I%U%!%$%k$O(B    <code>/usr/local/apache/passwd</code>    $B$J$I$KCV$$$?J}$,NI$$$G$7$g$&!#(B</p>    <p>$B%U%!%$%k$r:n$k$?$a$K$O!"(BApache $BIUB0$N(B <a    href="../programs/htpasswd.html">htpasswd</a>     $B$r;H$$$^$9!#$3$N%3%^%s%I$O(B Apache $B$r$I$3$K%$%s%9%H!<%k$7$h$&$H$b!"(B    $B%$%s%9%H!<%k%G%#%l%/%H%j$N(B <code>bin</code>     $B%G%#%l%/%H%j0J2<$KCV$+$l$^$9!#%U%!%$%k$r:n$k$K$O!"<!$N$h$&$K(B    $B%?%$%W$7$F$/$@$5$$!#(B</p>    <example>      htpasswd -c /usr/local/apache/passwd/passwords rbowen    </example>    <p><code>htpasswd</code> $B$O!"%Q%9%o!<%I$rMW5a$7!"$=$N8e(B    $B3NG'$N$?$a$K$b$&0lEYF~NO$9$k$h$&$KMW5a$7$F$-$^$9!#(B</p>    <example>      # htpasswd -c /usr/local/apache/passwd/passwords rbowen<br />      New password: mypassword<br />      Re-type new password: mypassword<br />      Adding password for user rbowen    </example>    <p>$B$b$7(B <code>htpasswd</code> $B$,%Q%9$NCf$KF~$C$F$$$J$$>l9g$O!"(B    $B$b$A$m$s!"<B9T$9$k$?$a$K%W%m%0%i%`$^$G$N%U%k%Q%9$r(B    $B%?%$%W$9$kI,MW$,$"$j$^$9!#;d$N%5!<%P$G$"$l$P!"(B    <code>/usr/local/apache/bin/htpasswd</code>    $B$K%W%m%0%i%`$,CV$+$l$F$$$^$9!#(B</p>    <p>$B<!$K!"%5!<%P$,%Q%9%o!<%I$rMW5a$9$k$h$&$K@_Dj$7$F!"(B    $B$I$N%f!<%6$,%"%/%;%9$r5v$5$l$F$$$k$+$r%5!<%P$KCN$i$;$J$1$l$P(B    $B$J$j$^$;$s!#(B <code>httpd.conf</code> $B$rJT=8$9$k$+(B    <code>.htaccess</code> $B%U%!%$%k$r;HMQ$9$k$+$G(B    $B@_Dj$7$^$9!#Nc$($P!"%G%#%l%/%H%j(B    <code>/usr/local/apache/htdocs/secret</code>    $B$rJ]8n$7$?$$>l9g$O!"(B    <code>/usr/local/apache/htdocs/secret/.htaccess</code>    $B$+(B httpd.conf $BCf$N(B &lt;Directory    /usr/local/apache/apache/htdocs/secret&gt; $B%;%/%7%g%s$K(B    $BG[CV$7$F!"<!$N%G%#%l%/%F%#%V$r;H$&$3$H$,$G$-$^$9!#(B</p>    <example>      AuthType Basic<br />      AuthName "Restricted Files"<br />      AuthUserFile /usr/local/apache/passwd/passwords<br />      Require user rbowen    </example>    <p>$B8D!9$N%G%#%l%/%F%#%V$K$D$$$F8+$F$_$^$7$g$&!#(B    <directive module="core">AuthType</directive>    $B%G%#%l%/%F%#%V$O$I$&$$$&G'>ZJ}K!$G%f!<%6$NG'>Z$r9T$&$+$r(B    $BA*Br$7$^$9!#:G$b0lHLE*$JJ}K!$O(B <code>Basic</code>    $B$G!"$3$l$O(B <module>mod_auth</module>    $B$G<BAu$5$l$F$$$^$9!#$7$+$7$J$,$i!"(B    $B$3$l$O5$$rIU$1$k$Y$-=EMW$J%]%$%s%H$J$N$G$9$,!"(B    Basic $BG'>Z$O%/%i%$%"%s%H$+$i%V%i%&%6$X!"(B    $B%Q%9%o!<%I$r0E9f2=$;$:$KAw$j$^$9!#$G$9$+$i!"(B    $B$3$NJ}K!$OFC$K5!L)@-$N9b$$%G!<%?$KBP$7$F$OMQ$$$k$Y$-$G$O(B    $B$"$j$^$;$s!#(B Apache $B$G$O$b$&0l$DJL$NG'>ZJ}K!(B:    <code>AuthType Digest</code> $B$r%5%]!<%H$7$F$$$^$9!#(B    $B$3$NJ}K!$O(B <module>mod_auth_digest</module>    $B$G<BAu$5$l$F$$$F!"$b$C$H0BA4$G$9!#(B    $B$4$/$4$/:G6a$N%/%i%$%"%s%H$7$+(B Digest    $BG'>Z$r%5%]!<%H$7$F$$$J$$$h$&$G$9!#(B</p>    <p><directive module="core">AuthName</directive>    $B%G%#%l%/%F%#%V$G$O!"G'>Z$K;H$&(B <dfn>Realm</dfn> ($BLuCm(B: $BNN0h(B)    $B$r@_Dj$7$^$9!#(BRealm $B$OBg$-$/J,$1$FFs$D$N5!G=$rDs6!$7$^$9!#(B    $B0l$DL\$O!"%/%i%$%"%s%H$,%Q%9%o!<%I%@%$%"%m%0%\%C%/%9$N(B    $B0lIt$H$7$F%f!<%6$K$3$N>pJs$r$h$/Ds<($9$k!"$H$$$&$b$N$G$9!#(B    $BFs$DL\$K$O!"%/%i%$%"%s%H$,M?$($i$l$?G'>ZNN0h$KBP$7$F$I$N%Q%9%o!<%I$r(B    $BAw?.$9$l$PNI$$$N$+$r7hDj$9$k$?$a$K;H$o$l$k!"$H$$$&5!G=$G$9!#(B</p>    <p>$BNc$($P!"(B<code>"Restricted Files"</code> $BNN0hCf$G(B    $B0lEYG'>Z$5$l$l$P!"F10l%5!<%P>e$G(B <code>"Restricted Files"</code>    Realm $B$H$7$F%^!<%/$5$l$?$I$s$JNN0h$G$b!"%/%i%$%"%s%H$O(B    $B<+F0E*$KF1$8%Q%9%o!<%I$r;H$*$&$H;n$_$^$9!#(B    $B$3$N$*$+$2$G!"J#?t$N@)8BNN0h$KF1$8(B realm $B$r6&M-$5$;$F!"(B    $B%f!<%6$,%Q%9%o!<%I$r2?EY$bMW5a$5$l$k;vBV$r(B    $BKI$0$3$H$,$G$-$^$9!#$b$A$m$s!"%;%-%e%j%F%#>e$NM}M3$+$i!"(B    $B%5!<%P$N%[%9%HL>$,JQ$o$l$P$$$D$G$bI,$:!"(B    $B%/%i%$%"%s%H$O:F$S%Q%9%o!<%I$r?R$M$kI,MW$,$"$j$^$9!#(B</p>

⌨️ 快捷键说明

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