ja:documentation:pandorafms:technical_annexes:11_mod_proxy

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
ja:documentation:pandorafms:technical_annexes:11_mod_proxy [2024/08/21 02:36] – [概要] junichija:documentation:pandorafms:technical_annexes:11_mod_proxy [2024/11/16 22:39] (現在) – [概要] junichi
行 4: 行 4:
 [[ja:documentation:start|Pandora FMS ドキュメント一覧に戻る]] [[ja:documentation:start|Pandora FMS ドキュメント一覧に戻る]]
  
-<WRAP center round important 60%> 
- 
-This article uses CentOS 6, an operating system that has completed its End-of-life product cycle. 
- 
-</WRAP> 
- 
-<WRAP center round important 60%> 
- 
-この記事では、サポート終了となっているオペレーティングシステムである CentOS 6 を使用しています。 
- 
-</WRAP> 
  
 ===== 概要 ===== ===== 概要 =====
行 128: 行 117:
 </file> </file>
  
-The client will need to have access through the Command Center (Metaconsole) to all the nodes, but initially it cannot, since these have internal IP addresses and from outside there is no connectivity with them. To be able to do this, the mod_proxy module is enabled in the **apache** of the Command Center (Metaconsole) so that it has direct access to all nodes. The indicated configuration is on Apache 2.2 on CentOS 6.7.+The client will need to have access through the Command Center (Metaconsole) to all the nodes, but initially it cannot, since these have internal IP addresses and from outside there is no connectivity with them. To be able to do this, the mod_proxy module is enabled in the **apache** of the Command Center (Metaconsole) so that it has direct access to all nodes. The indicated configuration is on Apache 2 .
  
 ユーザは、コマンドセンター(メタコンソール)を通してすべてのノードにアクセスする必要がありますが、ノードは内部のIPのため初期設定時にはアクセスできません。 ユーザは、コマンドセンター(メタコンソール)を通してすべてのノードにアクセスする必要がありますが、ノードは内部のIPのため初期設定時にはアクセスできません。
-まずは、すべてのノードへアクセスできるように、apache の mod_proxy モジュールをコマンドセンター(メタコンソール)サーバで有効化します。以下では CentOS 6.7 と apache 2.2 を想定しています。+まずは、すべてのノードへアクセスできるように、**apache** の mod_proxy モジュールをコマンドセンター(メタコンソール)サーバで有効化します。以下では apache 2 を想定しています。
  
  
行 138: 行 127:
 ==== コマンドセンター(メタコンソール)設定 ==== ==== コマンドセンター(メタコンソール)設定 ====
  
-/etc/hosts ファイルに、各ノードの情報を次のように記載します。+First of all add in the file ''/etc/hosts'' all the addresses of the different nodes: 
 + 
 +''/etc/hosts'' ファイルに、各ノードの情報を次のように記載します。
  
 <code> <code>
-127.0.0.1   meta.artica.es + 127.0.0.1   meta.es 
-192.168.10.1  node1.artica.es + 192.168.1.11  node1.es 
-192.168.10. node2.artica.es + 192.168.1.12  node2.es 
-192.168.10. node3.artica.es+ 192.168.1.13  node3.es 
 </code> </code>
  
-apache で mod_proxy モジュールを有効化するには、apache の設定ファイル(httpd.conf)を開き、次の行が有効になっているか確認します。+To enable ''mod_proxy'' on the Apache server, open the ''httpd.conf'' configuration file and first check that all these lines are enabled: 
 + 
 +apache で ''mod_proxy'' モジュールを有効化するには、設定ファイル ''httpd.conf'' を開き、次の行が有効になっているか確認します。
  
 <code> <code>
-LoadModule proxy_module modules/mod_proxy.so + LoadModule proxy_module modules/mod_proxy.so 
-LoadModule proxy_balancer_module modules/mod_proxy_balancer.so + LoadModule proxy_balancer_module modules/mod_proxy_balancer.so 
-LoadModule proxy_ftp_module modules/mod_proxy_ftp.so + LoadModule proxy_ftp_module modules/mod_proxy_ftp.so 
-LoadModule proxy_http_module modules/mod_proxy_http.so + LoadModule proxy_http_module modules/mod_proxy_http.so 
-LoadModule proxy_ajp_module modules/mod_proxy_ajp.so + LoadModule proxy_ajp_module modules/mod_proxy_ajp.so 
-LoadModule proxy_connect_module modules/mod_proxy_connect.so+ LoadModule proxy_connect_module modules/mod_proxy_connect.so 
 </code> </code>
  
-次の設定を httpd.conf に追加します。+Once done, the following lines are added to the file ''httpd.conf'': 
 + 
 +次の設定を ''httpd.conf'' に追加します。
  
 <code> <code>
-ProxyRequests Off + ProxyRequests Off 
-ProxyPreserveHost On + ProxyPreserveHost On 
-ProxyPass /node1 http://node1.artica.es/pandora_console  + ProxyPass /node1 http://node1.es/pandora_console 
-ProxyPassReverse /node1 http://node1.artica.es/pandora_console + ProxyPassReverse /node1 http://node1.es/pandora_console 
-ProxyPass /node2 http://node2.artica.es/pandora_console  + ProxyPass /node2 http://node2.es/pandora_console 
-ProxyPassReverse /node2 http://node2.artica.es/pandora_console + ProxyPassReverse /node2 http://node2.es/pandora_console 
-ProxyPass /node3 http://node3.artica.es/pandora_console + ProxyPass /node3 http://node3.es/pandora_console 
-ProxyPassReverse /node3 http://node3.artica.es/pandora_console+ ProxyPassReverse /node3 http://node3.es/pandora_console 
 </code> </code>
  
-この設定により、http://meta.artica.es/node1 へアクセスすると、http://node1.artica.es/pandora_console にリダイレクトされるようになります。他のノードも同様です。+By this we are indicating that when someone accesses
  
-https を有効化している場合は、以下も追加します。+これにより、以下にアクセスすると、 
 + 
 +<file> 
 +http://meta.es/node1 
 + 
 +</file> 
 + 
 +will automatically redirect you to 
 + 
 +以下にリダイレクトされます。 
 + 
 +<file> 
 +http://node1.es/pandora_console 
 + 
 +</file> 
 + 
 +and so on with all nodes. If HTTPS is enabled, this configuration should be added: 
 + 
 +他のノードも同様です。HTTPS を有効化している場合は、以下も追加します。
  
 <code> <code>
-SSLEngine on + SSLEngine on 
-SSLProxyEngine On + SSLProxyEngine On 
-SSLCertificateFile /etc/httpd/ssl/ca.crt + SSLCertificateFile /etc/httpd/ssl/ca.crt 
-SSLCertificateKeyFile /etc/httpd/ssl/ca.key + SSLCertificateKeyFile /etc/httpd/ssl/ca.key 
-ProxyRequests Off + ProxyRequests Off 
-ProxyPreserveHost On + ProxyPreserveHost On 
-ProxyPass /node1 https://node1.artica.es/pandora_console  + ProxyPass /node1 https://node1.es/pandora_console 
-ProxyPassReverse /node1 https://node1.artica.es/pandora_console + ProxyPassReverse /node1 https://node1.es/pandora_console 
-ProxyPass /node2 https://node2.artica.es/pandora_console  + ProxyPass /node2 https://node2.es/pandora_console 
-ProxyPassReverse /node2 https://node2.artica.es/pandora_console  + ProxyPassReverse /node2 https://node2.es/pandora_console 
-ProxyPass /node3 https://node3.artica.es/pandora_console  + ProxyPass /node3 https://node3.es/pandora_console 
-ProxyPassReverse /node3 https://node3.artica.es/pandora_console+ ProxyPassReverse /node3 https://node3.es/pandora_console 
 </code> </code>
  
-ノード1、2、3 の apache の ca.key および ca.crt を設定しています。+Being the certificates ''ca.key'' and ''ca.crt'' the ones used by the Apache servers of node1, node2 and node3.
  
-The last step to be performed is the Command Center (Metaconsole) configuration.+ノード1、2、3 の apache の ''ca.key'' および ''ca.crt'' を設定しています。
  
-最後のステップとして、コマンドセンター(メタコンソール)の設定を行います。+The last step to be performed is the configuration of the Command Center (Metaconsole). The only parameter that must be made in a specific way is:
  
-**コンソールURL:** httpd.conf で設定した各ノードの公開URL (http://meta.artica.es/node1 , http://meta.artica.es/node2, http://meta.artica.es/node3設定ます。+最後のステップとして、コマンドセンター(メタコンソール)設定を行いす。特定の方法で作成する必要がある唯一のパラメータは次のとおりです。
  
-{{ wiki:mod_proxy2.png?800 }}+**Console URL:** Indicate the Public URLs of each one of the nodes that will match with the link configured in the httpd.conf file for each one of the nodes.
  
-After setting the target Command Center (Metaconsole) to contact the nodes, the next step would be to configure each node.+**コンソール URL:** 各ノードの httpd.conf ファイルでの設定と一致する各ノードの公開 URL を指定します。 
 + 
 +<file> 
 +http://meta.es/node1 , http://meta.es/node2 , http://meta.es/node3 
 + 
 +</file> 
 + 
 +{{  :wiki:mod_proxy2.png  }} 
 + 
 +Once the Command Center (Metaconsole) is configured to contact the nodes, the next step is to configure each node.
  
 コマンドセンター(メタコンソール)からノードへの接続を設定したあとは、次にそれぞれのノードの設定を行います。 コマンドセンター(メタコンソール)からノードへの接続を設定したあとは、次にそれぞれのノードの設定を行います。
  
-<WRAP center round important 60%>+<WRAP center round important 90%> 
 + 
 +The links will vary in each case if we are using HTTPS instead of HTTP. 
 + 
 +</WRAP> 
 + 
 +<WRAP center round important 90%> 
 http の代わりに https を利用している場合は、それぞれリンク先が異なります。 http の代わりに https を利用している場合は、それぞれリンク先が異なります。
 +
 </WRAP> </WRAP>
 +
 +<wrap #ks1_1_1 />
  
 === ノードの設定 === === ノードの設定 ===
-それぞれのノードで行う設定は、コンソールの設定で "公開 URL" の指定のみです。 
  
-この URL は、それぞれのノードで最初に示した公開URLである必要があります。 +The only special configuration that must be added to each of the nodes is the Public URL in the Console Setup. This URL must be configured with the public URL indicated in each case in the scenario that we presented at the beginning. Example in node 1:
-ノードの例:+
  
-{{ wiki:mod_proxy3.png?800 }}+各ノードに追加する必要がある唯一の特別な設定は、コンソールセットアップの公開 URL です。この URL は、最初に示したシナリオの各ケースで示されている公開 URL を使用して設定する必要があります。ノード 1 の例: 
 + 
 +{{  :wiki:mod_proxy3.png  }} 
 + 
 +<WRAP center round important 90%> 
 + 
 +The links will vary in each case if you are using HTTPS instead of HTTP. 
 + 
 +</WRAP> 
 + 
 +<WRAP center round important 90%>
  
-<WRAP center round important 60%> 
 http の代わりに https を利用している場合は、それぞれリンク先が異なります。 http の代わりに https を利用している場合は、それぞれリンク先が異なります。
 +
 </WRAP> </WRAP>
  
 [[ja:documentation:start|Pandora FMS ドキュメント一覧に戻る]] [[ja:documentation:start|Pandora FMS ドキュメント一覧に戻る]]
 +
  • ja/documentation/pandorafms/technical_annexes/11_mod_proxy.1724207761.txt.gz
  • 最終更新: 2024/08/21 02:36
  • by junichi