github.com/krum110487/go-htaccess@v0.0.0-20240316004156-60641c8e7598/tests/data/apache_2_2_34/manual/mod/mod_so.html.ja.utf8 (about)

     1  <?xml version="1.0" encoding="UTF-8"?>
     2  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
     3  <html xmlns="http://www.w3.org/1999/xhtml" lang="ja" xml:lang="ja"><head>
     4  <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
     5  <!--
     6          XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
     7                This file is generated from xml source: DO NOT EDIT
     8          XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
     9        -->
    10  <title>mod_so - Apache HTTP サーバ バージョン 2.2</title>
    11  <link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" />
    12  <link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" />
    13  <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" />
    14  <script src="../style/scripts/prettify.min.js" type="text/javascript">
    15  </script>
    16  
    17  <link href="../images/favicon.ico" rel="shortcut icon" /><link href="http://httpd.apache.org/docs/current/mod/mod_so.html" rel="canonical" /></head>
    18  <body>
    19  <div id="page-header">
    20  <p class="menu"><a href="../mod/">モジュール</a> | <a href="../mod/directives.html">ディレクティブ</a> | <a href="http://wiki.apache.org/httpd/FAQ">FAQ</a> | <a href="../glossary.html">用語</a> | <a href="../sitemap.html">サイトマップ</a></p>
    21  <p class="apache">Apache HTTP サーバ バージョン 2.2</p>
    22  <img alt="" src="../images/feather.gif" /></div>
    23  <div class="up"><a href="./"><img title="&lt;-" alt="&lt;-" src="../images/left.gif" /></a></div>
    24  <div id="path">
    25  <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>
    26  <div id="page-content">
    27  <div class="retired"><h4>Please note</h4>
    28              <p> This document refers to a legacy release (<strong>2.2</strong>) of Apache httpd. The active release (<strong>2.4</strong>) is documented <a href="http://httpd.apache.org/docs/current">here</a>. If you have not already upgraded, please follow <a href="http://httpd.apache.org/docs/current/upgrading.html">this link</a> for more information.</p>
    29          <p>You may follow <a href="http://httpd.apache.org/docs/current/mod/mod_so.html">this link</a> to go to the current version of this document.</p></div><div id="preamble"><h1>Apache モジュール mod_so</h1>
    30  <div class="toplang">
    31  <p><span>翻訳済み言語: </span><a href="../en/mod/mod_so.html" hreflang="en" rel="alternate" title="English">&nbsp;en&nbsp;</a> |
    32  <a href="../ja/mod/mod_so.html" title="Japanese">&nbsp;ja&nbsp;</a> |
    33  <a href="../ko/mod/mod_so.html" hreflang="ko" rel="alternate" title="Korean">&nbsp;ko&nbsp;</a> |
    34  <a href="../tr/mod/mod_so.html" hreflang="tr" rel="alternate" title="Türkçe">&nbsp;tr&nbsp;</a></p>
    35  </div>
    36  <table class="module"><tr><th><a href="module-dict.html#Description">説明:</a></th><td>起動時や再起動時に実行コードとモジュールをサーバにロードする
    37  </td></tr>
    38  <tr><th><a href="module-dict.html#Status">ステータス:</a></th><td>Extension</td></tr>
    39  <tr><th><a href="module-dict.html#ModuleIdentifier">モジュール識別子:</a></th><td>so_module</td></tr>
    40  <tr><th><a href="module-dict.html#SourceFile">ソースファイル:</a></th><td>mod_so.c</td></tr>
    41  <tr><th><a href="module-dict.html#Compatibility">互換性:</a></th><td>このモジュールは Window では (常に含まれている) Base
    42  モジュールです</td></tr></table>
    43  <h3>概要</h3>
    44  
    45  
    46      <p>いくつかのオペレーティングシステムでは、サーバの再コンパイルをする代わりに、
    47      このモジュールを使用して
    48      <a href="../dso.html">動的共有オブジェクト</a>
    49      (DSO) 機構により、実行時に Apache にモジュールを読み込ませることが
    50      できます。</p>
    51  
    52      <p>Unix 上では、読み込まれるコードは通常は共有オブジェクトファイル
    53      (普通 <code>.so</code> という拡張子が付いています) からです。
    54      Windows 上ではこのモジュールの拡張子は <code>.so</code> か <code>.dll</code>
    55      です。</p>
    56  
    57      <div class="warning"><h3>警告</h3>
    58      <p>Apache 1.3 のモジュールを直接 Apache 2.0 で使うことはできません
    59      ― モジュールは Apache 2.0 用に動的にロードされるか、
    60      直接組み込まれるために修正されなければなりません。</p>
    61      </div>
    62  </div>
    63  <div id="quickview"><h3>トピック</h3>
    64  <ul id="topics">
    65  <li><img alt="" src="../images/down.gif" /> Windows 用のロード可能なモジュールを作成する</li>
    66  </ul><h3 class="directives">ディレクティブ</h3>
    67  <ul id="toc">
    68  <li><img alt="" src="../images/down.gif" /> <a href="#loadfile">LoadFile</a></li>
    69  <li><img alt="" src="../images/down.gif" /> <a href="#loadmodule">LoadModule</a></li>
    70  </ul>
    71  <ul class="seealso"><li><a href="#comments_section">コメント</a></li></ul></div>
    72  <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
    73  <div class="section">
    74  <h2>Windows 用のロード可能なモジュールを作成する</h2>
    75  
    76      <div class="note"><h3>注</h3>
    77      <p>Apache 1.3.15 と 2.0 とで Windows のモジュール名の形式は変更されました
    78      ― モジュールは mod_foo.so という名前になりました。</p>
    79  
    80      <p>まだ mod_so で ApacheModuleFoo.dll という名前のモジュールも
    81      ロードされますが、新しい名前の付け方を使う方が好まれます。モジュールを
    82      2.0 用に移植しているのであれば、2.0 の習慣に合うように名前を
    83      修正してください。</p></div>
    84  
    85      <p>Apache のモジュール API は UNIX と Windows 間では変更されていません。
    86      多くのモジュールは全く変更なし、もしくは簡単な変更により Windows 
    87      で実行できるようになります。ただし、それ以外の Windows には無い Unix
    88      アーキテクチャーの機能に依存したモジュールは動作しません。</p>
    89  
    90      <p>モジュールが実際に動作するときは、
    91      二つの方法のどちらかでサーバに追加することができます。まず、Unix
    92      と同様にサーバにコンパイルして組み込むことができます。Windows
    93      用の Apache は Unix 用の Apache にある <code>Configure</code>
    94      プログラムがありませんので、モジュールのソースファイルを
    95      ApacheCore プロジェクトファイルに追加し、シンボルを
    96      <code>os\win32\modules.c</code> ファイルに追加する必要があります。</p>
    97  
    98      <p>二つ目はモジュールを DLL としてコンパイルする方法です。
    99      DLL は共有ライブラリで、実行時に
   100      <code><code class="directive">LoadModule</code></code>
   101      ディレクティブによりサーバに読み込むことができます。これらのモジュール
   102      DLL はそのまま配布することが可能で、サーバを再コンパイルすることなく、Windows
   103      用の Apache のすべてのインストールで実行することができます。</p>
   104  
   105      <p>モジュール DLL を作成するためには、
   106      モジュールの作成に小さな変更を行なう必要があります。
   107      つまり、モジュールのレコード (これは後で作成されます。
   108      以下を参照してください) が DLL からエクスポートされなければなりません。
   109      これを行なうには、<code>AP_MODULE_DECLARE_DATA</code> (Apache
   110      のヘッダファイルで定義されています) をモジュールのモジュールレコード
   111      定義の部分に追加してください。たとえば、モジュールに</p>
   112  <div class="example"><p><code>
   113      module foo_module;
   114  </code></p></div>
   115  
   116      <p>があるとすると、それを次のもので置き換えてください。</p>
   117  <div class="example"><p><code>
   118      module AP_MODULE_DECLARE_DATA foo_module;
   119  </code></p></div>
   120  
   121      <p>Unix 上でもこのモジュールを
   122      変更無しで使い続けられるように、このマクロは Windows
   123      上でのみ効力を持ちます。<code>.DEF</code>
   124      ファイルの方を良く知っているという場合は、
   125      代わりにそれを使ってモジュールレコードを
   126      エクスポートすることもできます。</p>
   127      <p>さあ、あなたのモジュールの DLL を作成しましょう。これを、
   128      libhttpd.lib 共有ライブラリがコンパイルされたときに作成された
   129      ibhttpd.lib エクスポートライブラリとリンクしてください。この時に、
   130      Apache のヘッダファイルが正しい位置にあるように、
   131      コンパイラの設定を変える必要があるかもしれません。
   132      このライブラリはサーバルートの modules ディレクトリにあります。
   133      ビルド環境が正しく設定されるように、既存のモジュール用の .dsp を
   134      取ってくるのが一番良いでしょう。もしくは、あなたの .dsp と
   135      コンパイラとリンクのオプションを比較する、というものでも良いです。</p>
   136  
   137      <p>これで DLL 版のモジュールが作成されているはずです。
   138      サーバルートの <code>modules</code>
   139      ディレクトリにモジュールを置いて、
   140      <code><code class="directive">LoadModule</code></code>
   141      ディレクティブを使って読み込んでください。</p>
   142  </div>
   143  <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
   144  <div class="directive-section"><h2><a name="LoadFile" id="LoadFile">LoadFile</a> <a name="loadfile" id="loadfile">ディレクティブ</a></h2>
   145  <table class="directive">
   146  <tr><th><a href="directive-dict.html#Description">説明:</a></th><td>指定されたオブジェクトファイルやライブラリをリンクする</td></tr>
   147  <tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>LoadFile <em>filename</em> [<em>filename</em>] ...</code></td></tr>
   148  <tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サーバ設定ファイル</td></tr>
   149  <tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>Extension</td></tr>
   150  <tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td>mod_so</td></tr>
   151  </table>
   152  
   153      <p>LoadFile ディレクティブは、サーバが起動されたときや再起動されたときに、
   154      指定されたオブジェクトファイルやライブラリをリンクします。
   155      これはモジュールが動作するために必要になるかもしれない追加の
   156      コードを読み込むために使用されます。<em>Filename</em> は絶対パスか、<a href="core.html#serverroot">ServerRoot</a> からの相対パスです。</p>
   157  
   158      <p>例:</p>
   159  
   160      <div class="example"><p><code>LoadFile libexec/libxmlparse.so</code></p></div>
   161  
   162  
   163  </div>
   164  <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
   165  <div class="directive-section"><h2><a name="LoadModule" id="LoadModule">LoadModule</a> <a name="loadmodule" id="loadmodule">ディレクティブ</a></h2>
   166  <table class="directive">
   167  <tr><th><a href="directive-dict.html#Description">説明:</a></th><td>オブジェクトファイルやライブラリをリンクし、使用モジュールの
   168  リストに追加する</td></tr>
   169  <tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>LoadModule <em>module filename</em></code></td></tr>
   170  <tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サーバ設定ファイル</td></tr>
   171  <tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>Extension</td></tr>
   172  <tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td>mod_so</td></tr>
   173  </table>
   174  
   175      <p>LoadModule ディレクティブは <em>filename</em>
   176      というオブジェクトファイルおよびライブラリをリンクし、<em>module</em>
   177      という名前のモジュールの構造をアクティブなモジュールのリストに追加します。
   178      <em>Module</em> はファイル中の <code>module</code>
   179      型の外部変数の名前で、モジュールのドキュメントに
   180      <a href="module-dict.html#moduleidentifier">モジュール識別子</a>として書かれているものです。例 :</p>
   181  
   182      <div class="example"><p><code>
   183        LoadModule status_module modules/mod_status.so
   184      </code></p></div>
   185  
   186      <p>これは ServerRoot の modules サブディレクトリから指定された名前の
   187      モジュールをロードします。</p>
   188  
   189  </div>
   190  </div>
   191  <div class="bottomlang">
   192  <p><span>翻訳済み言語: </span><a href="../en/mod/mod_so.html" hreflang="en" rel="alternate" title="English">&nbsp;en&nbsp;</a> |
   193  <a href="../ja/mod/mod_so.html" title="Japanese">&nbsp;ja&nbsp;</a> |
   194  <a href="../ko/mod/mod_so.html" hreflang="ko" rel="alternate" title="Korean">&nbsp;ko&nbsp;</a> |
   195  <a href="../tr/mod/mod_so.html" hreflang="tr" rel="alternate" title="Türkçe">&nbsp;tr&nbsp;</a></p>
   196  </div><div class="top"><a href="#page-header"><img src="../images/up.gif" alt="top" /></a></div><div class="section"><h2><a id="comments_section" name="comments_section">コメント</a></h2><div class="warning"><strong>Notice:</strong><br />This is not a Q&amp;A section. Comments placed here should be pointed towards suggestions on improving the documentation or server, and may be removed again by our moderators if they are either implemented or considered invalid/off-topic. Questions on how to manage the Apache HTTP Server should be directed at either our IRC channel, #httpd, on Freenode, or sent to our <a href="http://httpd.apache.org/lists.html">mailing lists</a>.</div>
   197  <script type="text/javascript"><!--//--><![CDATA[//><!--
   198  var comments_shortname = 'httpd';
   199  var comments_identifier = 'http://httpd.apache.org/docs/2.2/mod/mod_so.html';
   200  (function(w, d) {
   201      if (w.location.hostname.toLowerCase() == "httpd.apache.org") {
   202          d.write('<div id="comments_thread"><\/div>');
   203          var s = d.createElement('script');
   204          s.type = 'text/javascript';
   205          s.async = true;
   206          s.src = 'https://comments.apache.org/show_comments.lua?site=' + comments_shortname + '&page=' + comments_identifier;
   207          (d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(s);
   208      }
   209      else { 
   210          d.write('<div id="comments_thread">Comments are disabled for this page at the moment.<\/div>');
   211      }
   212  })(window, document);
   213  //--><!]]></script></div><div id="footer">
   214  <p class="apache">Copyright 2017 The Apache Software Foundation.<br />この文書は <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a> のライセンスで提供されています。.</p>
   215  <p class="menu"><a href="../mod/">モジュール</a> | <a href="../mod/directives.html">ディレクティブ</a> | <a href="http://wiki.apache.org/httpd/FAQ">FAQ</a> | <a href="../glossary.html">用語</a> | <a href="../sitemap.html">サイトマップ</a></p></div><script type="text/javascript"><!--//--><![CDATA[//><!--
   216  if (typeof(prettyPrint) !== 'undefined') {
   217      prettyPrint();
   218  }
   219  //--><!]]></script>
   220  </body></html>