ip-based.html.ja.euc-jp

来自「apache服务器源代码(版本号:2.2.2)」· EUC-JP 代码 · 共 158 行

EUC-JP
158
字号
<?xml version="1.0" encoding="EUC-JP"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="ja" xml:lang="ja"><head><!--        XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX              This file is generated from xml source: DO NOT EDIT        XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX      --><title>Apache の IP ベ〖スのバ〖チャルホストサポ〖ト - Apache HTTP サ〖バ</title><link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" /><link href="../style/css/manual-loose-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" /><link href="../images/favicon.ico" rel="shortcut icon" /></head><body id="manual-page"><div id="page-header"><p class="menu"><a href="../mod/">モジュ〖ル</a> | <a href="../mod/directives.html">ディレクティブ</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">脱胳</a> | <a href="../sitemap.html">サイトマップ</a></p><p class="apache">Apache HTTP サ〖バ バ〖ジョン 2.2</p><img alt="" src="../images/feather.gif" /></div><div class="up"><a href="./"><img title="&lt;-" alt="&lt;-" src="../images/left.gif" /></a></div><div id="path"><a href="http://www.apache.org/">Apache</a> &gt; <a href="http://httpd.apache.org/">HTTP サ〖バ</a> &gt; <a href="http://httpd.apache.org/docs/">ドキュメンテ〖ション</a> &gt; <a href="../">バ〖ジョン 2.2</a> &gt; <a href="./">バ〖チャルホスト</a></div><div id="page-content"><div id="preamble"><h1>Apache の IP ベ〖スのバ〖チャルホストサポ〖ト</h1><div class="toplang"><p><span>Available Languages: </span><a href="../en/vhosts/ip-based.html" hreflang="en" rel="alternate" title="English">&nbsp;en&nbsp;</a> |<a href="../fr/vhosts/ip-based.html" hreflang="fr" rel="alternate" title="Fran彨產is">&nbsp;fr&nbsp;</a> |<a href="../ja/vhosts/ip-based.html" title="Japanese">&nbsp;ja&nbsp;</a> |<a href="../ko/vhosts/ip-based.html" hreflang="ko" rel="alternate" title="Korean">&nbsp;ko&nbsp;</a></p></div></div><div id="quickview"><ul id="toc"><li><img alt="" src="../images/down.gif" /> <a href="#requirements">システム妥凤</a></li><li><img alt="" src="../images/down.gif" /> <a href="#howto">Apache の肋年数恕</a></li><li><img alt="" src="../images/down.gif" /> <a href="#multiple">剩眶デ〖モンの肋年</a></li><li><img alt="" src="../images/down.gif" /> <a href="#single">剩眶のバ〖チャルホストの肋年をしたデ〖モンを办つ肋年する</a></li></ul><h3>徊救</h3><ul class="seealso"><li><a href="name-based.html">叹涟ベ〖スのバ〖チャルホストサポ〖ト</a></li></ul></div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div><div class="section"><h2><a name="requirements" id="requirements">システム妥凤</a></h2>    <p><cite>IP ベ〖ス</cite> という叹涟が绩すように、サ〖バには    <strong>IP ベ〖スのバ〖チャルホストそれぞれにつき、侍」の IP アドレスが    涩妥です</strong>。剩眶の湿妄コネクションを积っているマシンを脱罢するか、    呵夺のオペレ〖ティングシステムでサポ〖トされているバ〖チャル    インタフェ〖ス (拒嘿はシステムの棱汤今を粕んでください。たいていは    "ip エイリアス" と钙ばれていて、肋年には舍奶 "ifconfig" コマンドを    蝗います) を蝗うかで悸附できます。</p></div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div><div class="section"><h2><a name="howto" id="howto">Apache の肋年数恕</a></h2>    <p>剩眶のホストをサポ〖トするように Apache を肋年する数恕は    企奶りあります。侍の <code class="program"><a href="../programs/httpd.html">httpd</a></code> デ〖モンを称ホスト髓に悸乖するか、    すべてのバ〖チャルホストをサポ〖トするデ〖モンを办つ悸乖するかです。</p>    <p>笆布のときには剩眶のデ〖モンを蝗うと紊いでしょう:</p>    <ul>      <li>柴家1 はウェブ沸统笆嘲では柴家2 からはデ〖タを粕まれたくない、      といったセキュリティの尸违の啼玛があるとき。この眷圭、それぞれ      <code class="directive"><a href="../mod/mpm_common.html#user">User</a></code>, <code class="directive"><a href="../mod/mpm_common.html#group">Group</a></code>, <code class="directive"><a href="../mod/mpm_common.html#listen">Listen</a></code>, <code class="directive"><a href="../mod/core.html#serverroot">ServerRoot</a></code> の肋年が般う企つのデ〖モンを      悸乖する涩妥があります。</li>      <li>マシンのすべての IP エイリアスを listen するだけの      メモリとファイル淡揭灰の途偷があるとき。<code class="directive"><a href="../mod/mpm_common.html#listen">Listen</a></code> は≈ワイルドカ〖ド∽      アドレスか、泼年のアドレスのみを listen することができます。      ですから、部らかの妄统で泼年のアドレスを listen しなけばならない      ときは、その泼年のアドレスをすべて listen する涩妥があります。      (ただし、办つの <code class="program"><a href="../programs/httpd.html">httpd</a></code> が N-1 改のアドレスを listen し、      侍の <code class="program"><a href="../programs/httpd.html">httpd</a></code> が荒りのアドレスを listen するといったことは材墙です。)</li>    </ul>    <p>笆布のときには帽迫のデ〖モンを蝗うと紊いでしょう:</p>    <ul>      <li>バ〖チャルホスト粗での httpd の肋年を鼎铜してもよいとき。</li>      <li>マシンが驴くのリクエストを胺うため、侍デ〖モンを悸乖することによる      拉墙の你布の逼读が螟しいとき。</li>    </ul></div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div><div class="section"><h2><a name="multiple" id="multiple">剩眶デ〖モンの肋年</a></h2>    <p>称バ〖チャルホストに滦して侍の <code class="program"><a href="../programs/httpd.html">httpd</a></code> のインスト〖ルを乖ないます。    肋年ファイル面の <code class="directive"><a href="../mod/mpm_common.html#listen">Listen</a></code>     ディレクティブを蝗って、    称インスト〖ルでデ〖モンが胺う IP アドレス (バ〖チャルホスト)     を联买します。毋えば</p>    <div class="example"><p><code>    Listen www.smallco.com:80    </code></p></div>    <p>ここで、ホスト叹の洛わりに IP アドレスを蝗う数が夸京されていることに    庙罢しておいてください    (<a href="../dns-caveats.html">DNS の庙罢祸灌</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="single" id="single">剩眶のバ〖チャルホストの肋年をしたデ〖モンを办つ肋年する</a></h2>    <p>この眷圭は、办つの <code class="program"><a href="../programs/httpd.html">httpd</a></code> が肩サ〖バとすべてのバ〖チャルホストのリクエストを    借妄します。肋年ファイルの <code class="directive"><a href="../mod/core.html#virtualhost">VirtualHost</a></code> ディレクティブを蝗って、    <code class="directive"><a href="../mod/core.html#serveradmin">ServerAdmin</a></code>, <code class="directive"><a href="../mod/core.html#servername">ServerName</a></code>, <code class="directive"><a href="../mod/core.html#documentroot">DocumentRoot</a></code>, <code class="directive"><a href="../mod/core.html#errorlog">ErrorLog</a></code>, <code class="directive"><a href="../mod/mod_log_config.html#transferlog">TransferLog</a></code>    や <code class="directive"><a href="../mod/mod_log_config.html#customlog">CustomLog</a></code>    肋年ディレクティブの猛が称ホスト髓に佰なる猛に肋年されるようにします。    毋えば</p>    <div class="example"><p><code>    &lt;VirtualHost www.smallco.com&gt;<br />    ServerAdmin webmaster@mail.smallco.com<br />    DocumentRoot /groups/smallco/www<br />    ServerName www.smallco.com<br />    ErrorLog /groups/smallco/logs/error_log<br />    TransferLog /groups/smallco/logs/access_log<br />    &lt;/VirtualHost&gt;<br />    <br />    &lt;VirtualHost www.baygroup.org&gt;<br />    ServerAdmin webmaster@mail.baygroup.org<br />    DocumentRoot /groups/baygroup/www<br />    ServerName www.baygroup.org<br />    ErrorLog /groups/baygroup/logs/error_log<br />    TransferLog /groups/baygroup/logs/access_log<br />    &lt;/VirtualHost&gt;    </code></p></div>    <p>ここで、ホスト叹の洛わりに IP アドレスを蝗う数が夸京されていることに    庙罢しておいてください    (<a href="../dns-caveats.html">DNS の庙罢祸灌</a> 徊救)。</p>    <p>プロセス栏喇を扩告するディレクティブやその戮のいくつかのディレクティブを    近いて、ほぼ<strong>すべて</strong>の肋年ディレクティブを VirtualHost    ディレクティブの面に今くことができます。ディレクティブが VirtualHost    ディレクティブで蝗脱できるかどうかは <a href="../mod/directives.html">ディレクティブ瑚苞</a>を蝗って<a href="../mod/directive-dict.html#Context">コンテキスト</a>の    腕を拇べてください。</p>    <p><a href="../suexec.html">suEXECラッパ〖</a>を蝗っている眷圭は、    <code class="directive"><a href="../mod/mod_suexec.html#suexecusergroup">SuexecUserGroup</a></code>    ディレクティブを VirtualHost    ディレクティブの面で蝗脱することができます。</p>    <p><em>セキュリティ:</em> ログファイルを今く眷疥を回年するときは、    Apache を弹瓢したユ〖ザ笆嘲がそのディレクトリに今き哈み涪嘎を    积っている眷圭にセキュリティ惧の错副があることに庙罢してください。    拒嘿は<a href="../misc/security_tips.html">セキュリティのこつ</a>ドキュメントを    徊救してください。</p></div></div><div class="bottomlang"><p><span>Available Languages: </span><a href="../en/vhosts/ip-based.html" hreflang="en" rel="alternate" title="English">&nbsp;en&nbsp;</a> |<a href="../fr/vhosts/ip-based.html" hreflang="fr" rel="alternate" title="Fran彨產is">&nbsp;fr&nbsp;</a> |<a href="../ja/vhosts/ip-based.html" title="Japanese">&nbsp;ja&nbsp;</a> |<a href="../ko/vhosts/ip-based.html" hreflang="ko" rel="alternate" title="Korean">&nbsp;ko&nbsp;</a></p></div><div id="footer"><p class="apache">Copyright 1995-2006 The Apache Software Foundation or its licensors, as applicable.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p><p class="menu"><a href="../mod/">モジュ〖ル</a> | <a href="../mod/directives.html">ディレクティブ</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">脱胳</a> | <a href="../sitemap.html">サイトマップ</a></p></div></body></html>

⌨️ 快捷键说明

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