Linux cesa-www-main 6.1.0-49-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64
Apache/2.4.68 (Debian)
Server IP : 10.218.0.2 & Your IP : 216.73.216.28
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
doc /
apache2-doc /
manual /
ja /
vhosts /
Delete
Unzip
Name
Size
Permission
Date
Action
details.html
19.89
KB
-rw-r--r--
2026-06-12 05:08
examples.html
31.24
KB
-rw-r--r--
2026-06-12 05:08
fd-limits.html
10.27
KB
-rw-r--r--
2026-06-12 05:08
index.html
10.43
KB
-rw-r--r--
2026-06-12 05:08
ip-based.html
13.85
KB
-rw-r--r--
2026-06-12 05:08
mass.html
18.38
KB
-rw-r--r--
2026-06-12 05:08
name-based.html
23.02
KB
-rw-r--r--
2026-06-12 05:08
Save
Rename
<!DOCTYPE html SYSTEM "about:legacy-compat"> <html lang="ja"><head><META http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta content="width=device-width, initial-scale=1" name="viewport"> <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX This file is generated from xml source: DO NOT EDIT XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --> <title>Apache の IP ベースのバーチャルホストサポート - Apache HTTP サーバ バージョン 2.4</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 rel="stylesheet" type="text/css" href="../../style/css/prettify.css"> <script src="../../style/scripts/prettify.min.js"> </script> <link href="../../images/favicon.png" rel="shortcut icon"></head> <body id="manual-page"><div id="page-header"> <p class="menu"><a href="../mod/index.html">モジュール</a> | <a href="../mod/quickreference.html">ディレクティブ</a> | <a href="https://cwiki.apache.org/confluence/display/httpd/FAQ">FAQ</a> | <a href="../glossary.html">用語</a> | <a href="../sitemap.html">サイトマップ</a> | <a href="https://bz.apache.org/bugzilla/enter_bug.cgi?product=Apache%20httpd-2">Report a bug</a></p> <p class="apache">Apache HTTP サーバ バージョン 2.4</p> <img alt="" src="../../images/feather.png"></div> <div class="up"><a href="./index.html"><img title="<-" alt="<-" src="../../images/left.gif"></a></div> <div id="path"> <a href="https://www.apache.org/">Apache</a> > <a href="https://httpd.apache.org/">HTTP サーバ</a> > <a href="https://httpd.apache.org/docs/">ドキュメンテーション</a> > <a href="../index.html">バージョン 2.4</a> > <a href="./index.html">バーチャルホスト</a></div><div id="page-content"><div id="preamble"><h1>Apache の IP ベースのバーチャルホストサポート</h1> <button aria-label="Toggle language list" class="lang-toggle"><svg xmlns="http://www.w3.org/2000/svg" stroke-width="2" stroke="currentColor" fill="none" viewBox="0 0 24 24" height="16" width="16"><circle r="10" cy="12" cx="12"/><line y2="12" x2="22" y1="12" x1="2"/><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"/></svg></button> <div class="toplang"> <p><span>翻訳済み言語: </span><a href="../../en/vhosts/ip-based.html" hreflang="en" rel="alternate" title="English"> en </a> | <a href="../../fr/vhosts/ip-based.html" hreflang="fr" rel="alternate" title="Français"> fr </a> | <a href="../../ja/vhosts/ip-based.html" title="Japanese"> ja </a> | <a href="../../ko/vhosts/ip-based.html" hreflang="ko" rel="alternate" title="Korean"> ko </a> | <a href="../../tr/vhosts/ip-based.html" hreflang="tr" rel="alternate" title="Türkçe"> tr </a></p> </div> <div class="outofdate">この日本語訳はすでに古くなっている 可能性があります。 最近更新された内容を見るには英語版をご覧下さい。 </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 id="requirements">システム要件 <a title="Permanent link" href="#requirements" class="permalink">¶</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 id="howto">Apache の設定方法 <a title="Permanent link" href="#howto" class="permalink">¶</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 id="multiple">複数デーモンの設定 <a title="Permanent link" href="#multiple" class="permalink">¶</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 id="single">複数のバーチャルホストの設定をした デーモンを一つ設定する <a title="Permanent link" href="#single" class="permalink">¶</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> <VirtualHost www.smallco.com><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> </VirtualHost><br> <br> <VirtualHost www.baygroup.org><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> </VirtualHost> </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>翻訳済み言語: </span><a href="../../en/vhosts/ip-based.html" hreflang="en" rel="alternate" title="English"> en </a> | <a href="../../fr/vhosts/ip-based.html" hreflang="fr" rel="alternate" title="Français"> fr </a> | <a href="../../ja/vhosts/ip-based.html" title="Japanese"> ja </a> | <a href="../../ko/vhosts/ip-based.html" hreflang="ko" rel="alternate" title="Korean"> ko </a> | <a href="../../tr/vhosts/ip-based.html" hreflang="tr" rel="alternate" title="Türkçe"> tr </a></p> </div><div id="footer"> <p class="apache">Copyright 2026 The Apache Software Foundation.<br>この文書は <a href="https://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a> のライセンスで提供されています。.</p> <p class="menu"><a href="../mod/index.html">モジュール</a> | <a href="../mod/quickreference.html">ディレクティブ</a> | <a href="https://cwiki.apache.org/confluence/display/httpd/FAQ">FAQ</a> | <a href="../glossary.html">用語</a> | <a href="../sitemap.html">サイトマップ</a> | <a href="https://bz.apache.org/bugzilla/enter_bug.cgi?product=Apache%20httpd-2">Report a bug</a></p></div><script><!--//--><![CDATA[//><!-- if (typeof(prettyPrint) !== 'undefined') { prettyPrint(); } var langToggle = document.querySelector('.lang-toggle'); var topLang = document.querySelector('.toplang'); if (langToggle && topLang) { langToggle.addEventListener('click', function() { topLang.classList.toggle('open'); }); } var qv = document.getElementById('quickview'); if (qv) { document.body.appendChild(qv); var qvBtn = document.createElement('button'); qvBtn.className = 'qv-toggle'; qvBtn.setAttribute('aria-label', 'Toggle page navigation'); qvBtn.innerHTML = '☰'; document.body.appendChild(qvBtn); qvBtn.addEventListener('click', function() { var isOpen = qv.classList.toggle('open'); if (isOpen) { qv.style.top = window.scrollY + 10 + 'px'; } }); window.addEventListener('scroll', function() { qv.classList.remove('open'); }); } //--><!]]></script> </body></html>