home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2003 November
/
PCWorld_2003-11_cd.bin
/
Komunik
/
apache
/
apache_2.0.47-win32-x86-no_ssl.msi
/
Data.Cab
/
F250619_dnscaveats.xml.ja
< prev
next >
Wrap
Extensible Markup Language
|
2003-05-20
|
10KB
|
215 lines
<?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: 1.2.2.2 -->
<manualpage metafile="dns-caveats.xml.meta">
<title>DNS $B$H(B Apache $B$K$^$D$o$kCm0U;v9`(B</title>
<summary>
<p>$BK\J8=q$NFbMF$O<!$N0l8@$K?T$-$^$9!#!V(BApache $B$,@_Dj%U%!%$%k$rFI$_9~$`$H$-$K(B
DNS $B$r;HMQ$9$kI,MW$,$J$$$h$&$K$7$F2<$5$$!W!#(BApache $B$,@_Dj%U%!%$%k$r(B
$BFI$_9~$`$H$-$K(B DNS $B$r;HMQ$9$kI,MW$,$"$k>l9g!"?.Mj@-$NLdBj(B
($B5/F0$7$J$$$+$b$7$l$^$;$s(B) $B$d%5!<%S%95qH]$dEpMQ%"%?%C%/(B
($BB>$N%f!<%6$+$i%R%C%H$rEp$`$3$H$r4^$_$^$9(B)
$B$NLdBj$KD>LL$9$k$+$b$7$l$^$;$s!#(B</p>
</summary>
<section id="example">
<title>$B4JC1$JNc(B</title>
<example>
<VirtualHost www.abc.dom> <br />
ServerAdmin webgirl@abc.dom <br />
DocumentRoot /www/abc <br />
</VirtualHost>
</example>
<p>Apache $B$,@5>o$K5!G=$9$k$K$O!"%P!<%A%c%k%[%9%HKh$KI,$:Fs$D$N(B
$B>pJs$,I,MW$K$J$j$^$9!#$=$l$O!"(B
<directive module="core">ServerName</directive>
$B$H!"$=$N%5!<%P$,1~Ez$9$k$?$a$N(B IP ($B:GDc0l$D(B) $B$G$9!#(B
$B$3$NNc$G$O(B IP $B%"%I%l%9$r4^$s$G$$$^$;$s$N$G!"(BApache $B$O(B DNS
$B$r;HMQ$7$F(B <code>www.abc.dom</code> $B$r8+$D$1$J$1$l$P$J$j$^$;$s!#(B
$B2?$i$+$NM}M3$G@_Dj%U%!%$%k$rFI$_9~$s$G$$$k$H$-$K(B DNS
$B$,MxMQ$G$-$J$+$C$?>l9g!"(B
$B%P!<%A%c%k%[%9%H$O(B<strong>$B@_Dj$5$l$^$;$s(B</strong>$B!#(B
$B$=$7$F!"$=$N%P!<%A%c%k%[%9%H$KBP$9$k%R%C%H$K$O1~Ez$,$J$5$l$^$;$s(B
(Apache 1.2 $B0JA0$G$O5/F0$9$i$7$^$;$s(B)$B!#(B</p>
<p><code>www.abc.dom</code> $B$N%"%I%l%9$,(B 10.0.0.1
$B$@$H$7$^$9!#$G$O!"<!$N@_Dj$K$D$$$F9M$($F$_$^$7$g$&!#(B</p>
<example>
<VirtualHost 10.0.0.1> <br />
ServerAdmin webgirl@abc.dom <br />
DocumentRoot /www/abc <br />
</VirtualHost>
</example>
<p>$B8=:_$N%j%j!<%9$G$O(B Apache $B$O(B DNS $B5U0z$-$r;HMQ$7$F(B
$B$3$N%P!<%A%c%k%[%9%H$N(B <directive module="core">ServerName</directive>
$B$r8+$D$1$^$9!#(B
$B$=$N5U0z$-$,<:GT$7$?>l9g$OItJ,E*$K%P!<%A%c%k%[%9%H$rL58z$K$7$^$9(B
(Apache 1.2 $B$h$jA0$G$O5/F0$9$i$7$^$;$s(B)$B!#(B
$B%P!<%A%c%k%[%9%H$,L>A0%Y!<%9$G$"$l$P40A4$KL58z$K$J$j$^$9$,!"(B
IP $B%Y!<%9$G$"$l$P35$MF0:n$7$^$9!#$7$+$7$J$,$i!"%5!<%PL>$r(B
$B4^$`40A4$J(B URL $B$r@8@.$7$J$1$l$P$J$i$J$$>l9g$O!"@5$7$$(B URL
$B$N@8@.$,$G$-$^$;$s!#(B</p>
<p>$B<!$NNc$O>e5-$NLdBj$r2r7h$7$F$$$^$9!#(B</p>
<example>
<VirtualHost 10.0.0.1> <br />
ServerName www.abc.dom <br />
ServerAdmin webgirl@abc.dom <br />
DocumentRoot /www/abc <br />
</VirtualHost>
</example>
</section>
<section id="denial">
<title>$B%5!<%S%95qH](B</title>
<p>$B%5!<%S%95qH]$,5/$3$k>l9g!"(B($B>/$J$/$H$b(B) $BFs$D$N%1!<%9$,$"$j$^$9!#(B
Apache 1.2 $B$h$jA0$r<B9T$7$F$$$k>l9g!"%P!<%A%c%k%[%9%H$N$?$a$N(B
$B>e5-$NFs$D$N(B DNS $B8!:w$N$&$A0l$D<:GT$9$l$P5/F0$9$i$7$^$;$s!#(B
$B$=$7$F$3$N(B DNS $B8!:w$,<+J,$N@)8f2<$K$9$i$J$$>l9g$b$"$j$($^$9!#(B
$BNc$($P!"(B<code>abc.dom</code> $B$,8\5R$N%5!<%P$N0l$D$G!"(B
DNS $B$O8\5R<+?H$G4IM}$7$F$$$k>l9g!"C1$K(B
<code>www.abc.dom</code> $B%l%3!<%I$r:o=|$9$k$@$1$G!"(B
(1.2 $B$h$jA0$N(B) $B%5!<%P$r5/F0ITG=$K$9$k$3$H$,$G$-$^$9!#(B</p>
<p>$B$b$&0l$D$N%1!<%9$O!"$h$j5$IU$-$K$/$$$b$N$G$9!#(B
$B<!$N@_Dj$K$D$$$F9M$($F$_$^$7$g$&!#(B</p>
<example>
<VirtualHost www.abc.dom> <br />
ServerAdmin webgirl@abc.dom <br />
DocumentRoot /www/abc <br />
</VirtualHost> <br />
<br />
<VirtualHost www.def.dom> <br />
ServerAdmin webguy@def.dom <br />
DocumentRoot /www/def <br />
</VirtualHost>
</example>
<p>10.0.0.1 $B$r(B <code>www.abc.dom</code> $B$K!"(B
10.0.0.2 $B$r(B <code>www.def.dom</code> $B$K3d$jEv$F$F$$$k$H$7$^$9!#(B
$B$^$?!"(B<code>def.dom</code> $B$O8\5R<+?H$N(B DNS
$B$N@)8f2<$K$"$k$H$7$^$9!#$3$N@_Dj$G!"(B<code>abc.dom</code>
$B$K8~$1$i$l$?%H%i%U%#%C%/A4$F$rC%$&$3$H$,$G$-$k0LCV$K(B
<code>def.dom</code> $B$r@_CV$G$-$F$$$^$9!#8e$OC1$K(B
<code>www.def.dom</code> $B$,(B 10.0.0.1 $B$r;2>H$9$k$h$&$K(B
$B@_Dj$9$k$@$1$G$9!#(BDNS $B$O8\5RB&$N(B DNS $B$G%3%s%H%m!<%k$5$l$F$$$k$N$G!"(B
<code>www.def.dom</code> $B%l%3!<%I$,9%$-$J>l=j$r;X$9$h$&$K(B
$B@_Dj$G$-$F$7$^$&$N$r;_$a$5$;$k$3$H$,$G$-$^$;$s!#(B</p>
<p>10.0.0.1 $B$KBP$9$k%j%/%(%9%H(B
(<code>http://www.abc.dom/whatever</code> $B7A<0$N(B URL
$B$rF~NO$7$?%f!<%6$+$i$N$b$NA4$F$r4^$_$^$9(B)
$B$O!"(B<code>def.dom</code> $B%P!<%A%c%k%[%9%H$G1~Ez$5$l$^$9!#(B
$B$3$N$h$&$J$3$H$,2?8N5/$3$k$+$b$C$HNI$/CN$k$?$a$K$O!"(B
$B1~Ez$NI,MW$J%P!<%A%c%k%[%9%H$X$N%j%/%(%9%H$KBP$7$F!"(B
Apache $B$,$I$N$h$&$K@09g@-$r3NJ]$9$k$+$K$D$$$F!"(B
$B?<$$5DO@$,I,MW$K$J$j$^$9!#$*$*$6$C$Q$J@bL@$O(B<a
href="vhosts/details.html">$B$3$A$i(B</a>$B$K5-=R$5$l$F$$$^$9!#(B</p>
</section>
<section id="main">
<title>$B!V<g%5!<%P!W%"%I%l%9(B</title>
<p>Apache 1.1 $B$G$N(B <a href="vhost/name-based.html"
>$BL>A0%Y!<%9$N%P!<%A%c%k%[%9%H$N%5%]!<%H(B</a> $BDI2C$N:]$K!"(B
Apache $B$O(B httpd $B$N<B9T$5$l$F$$$k%[%9%H$N(B IP
$B%"%I%l%9$rCN$kI,MW$,=P$F$-$^$7$?!#$3$N%"%I%l%9$rF@$k$?$a$K!"(B
($B$b$7$"$l$P(B) $B%0%m!<%P%k$J(B
<directive module="core">ServerName</directive> $B$r;HMQ$9$k$+!"(B
C $B8@8l$N4X?t(B <code>gethostname</code> ($B%3%^%s%I%W%m%s%W%H$G(B
<code>hostname</code> $B$H%?%$%W$7$?$H$-$HF1$8$b$N$rJV$7$^$9(B)
$B$r8F$S=P$9$+$r$7$^$9!#(B
$B$=$N8e!"F@$i$l$?%"%I%l%9$G(B DNS $B8!:w$r9T$J$$$^$9!#(B
$B8=:_$N$H$3$m!"$3$N(B DNS $B8!:w$r2sHr$9$kJ}K!$O$"$j$^$;$s!#(B</p>
<p>DNS $B%5!<%P$,%@%&%s$7$F!"$3$N8!:w$,$G$-$J$$;vBV$,5/$3$k$3$H$r(B
$B62$l$F$$$k$N$G$"$l$P!"(B<code>/etc/hosts</code>
$B$K%[%9%HL>$r5-=R$7$F$*$/$3$H$,$G$-$^$9(B
($B%^%7%s$,@5>o$K5/F0$9$k$h$&$K4{$K@_Dj$5$l$F$$$k$+$b$7$l$^$;$s(B)$B!#(B
$B$=$N>l9g!"(BDNS $B;2>H$,<:GT$7$?>l9g$K%^%7%s$,(B <code>/etc/hosts</code>
$B$r;HMQ$9$k$h$&$K@_Dj$7$F$$$k$3$H$r3NG'$7$F$/$@$5$$!#(B
$B$=$NJ}K!$O!"$I$N(B OS $B$r;HMQ$7$F$$$k$+$K0MB8$7$^$9$,!"(B
<code>/etc/resolv.conf</code> $B$+(B <code>/etc/nsswitch.conf</code>
$B$rJT=8$9$k$3$H$G@_Dj$G$-$^$9!#(B</p>
<p>$B$b$7B>$NM}M3$G(B DNS $B$rMxMQ$9$kI,MW$,$J$$>l9g$O!"(B
<code>HOSTRESORDER</code> $B4D6-JQ?t$r!V(B <code>local</code>
$B!W$K@_Dj$9$k$3$H$G$=$N$h$&$K$G$-$^$9!#0J>e$3$l$i$N;vJA$O!"$I$s$J(B
OS $B!"%l%>%k%P%i%$%V%i%j$r;HMQ$7$F$$$k$+$K0MB8$7$^$9!#$^$?!"(B
<module>mod_env</module> $B$r;HMQ$7$F4D6-JQ?t$r@)8f$7$J$$8B$j!"(B
CGI $B$K$b1F6A$rM?$($^$9!#(Bman $B%Z!<%8$d;HMQ$7$F$$$k(B OS
$B$N(B FAQ $B$GD4$Y$k$HNI$$$G$7$g$&!#(B</p>
</section>
<section id="tips">
<title>$B0J>e$NLdBj$r2r7h$9$kJ}K!(B</title>
<ul>
<li>
<directive module="core">VirtualHost</directive>
$B$G(B IP $B%"%I%l%9$r;HMQ$9$k!#(B
</li>
<li>
<directive module="mpm_common">Listen</directive>
$B$G(B IP $B%"%I%l%9$r;HMQ$9$k!#(B
</li>
<li>
$BA4$F$N%P!<%A%c%k%[%9%H$,L@<(E*$K(B
<directive module="core">ServerName</directive>
$B$r;}$D$h$&$K$9$k!#(B
</li>
<li>$B2?$b1~Ez$7$J$$(B
<code><VirtualHost _default_:*></code>
$B%5!<%P$r:n$k!#(B</li>
</ul>
</section>
<section id="appendix">
<title>$BIUO?(B: $B>-MhE*$JJ}8~@-(B</title>
<p>DNS $B$K4X$7$F!"8=>u$OA4$/59$7$/$"$j$^$;$s!#(BApache 1.2 $B$G!"(B
DNS $B$N%$%Y%s%H$,<:GT$7$F$b>/$J$/$H$b5/F0%W%m%;%9$,B3$/$h$&$K$7$^$7$?$,!"(B
$B$3$l$,:G9b$N2r7hJ}K!$G$O$J$$$G$7$g$&!#%"%I%l%9$N:F3d$jEv$F$,I,MWIT2DHr(B
$B$H$J$C$F$$$k:#F|$N%$%s%?!<%M%C%H$K$*$$$F$O!"(B
$B@_Dj%U%!%$%k$NCf$GL@<(E*$J(B IP $B%"%I%l%9$rMW5a$9$k;EMM$O!"(B
$BA4$/59$7$/$"$j$^$;$s!#(B</p>
<p>$BEpMQ$N%5!<%S%9%"%?%C%/$K4X$7$F9T$J$&$Y$-;v$O!"(B
DNS $B=g0z$-$r9T$J$C$FF@$i$l$?%"%I%l%9$KBP$9$k(B DNS
$B5U0z$-$r9T$J$C$F!"Fs$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