The simplest configuration is described.最も単純な構成は説明します。 It assumes you already have Tomcat 5.5 and Apache 2.0 (instructions for Apache 1.3 is also provided) installed and running. Tomcat 5.5のものと想定を既にお持ちとApache 2.0 (手順については、 Apache 1.3にも提供)をインストールし、実行中です。
The instructions are applicable (have been tested) for Windows as well as Linux platform.の指示にも適用(テストも)のWindowsだけでなくLinuxプラットフォームです。

Assume you want to map test directory of Apache to the mytest web application of Tomcat. テストしたいディレクトリにマップすると仮定のApache TomcatのWebアプリケーションmytestしています。 Change the name appropriately to suit your configuration.あなたの名前を変更に合わせて適切に設定します。

1. 1 。 Shutdown Apache & Tomcat Server Apacheの& Tomcatサーバーのシャットダウン

2. 2 。 Add the following lines to httpd.conf (in conf directory of Apache base directory) httpd.confに以下の行を追加して( confディレクトリにApacheのベースディレクトリ)

LoadModule proxy_module modules/mod_proxy.so LoadModuleへproxy_moduleモジュール/ mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so LoadModuleへproxy_http_moduleモジュール/ mod_proxy_http.so
ProxyPass /test/ http://localhost:8081/mytest/ proxypass /テスト/ http://localhost:8081/mytest/
ProxyPassReverse /test/ http://localhost:8081/mytest/ proxypassreverse /テスト/ http://localhost:8081/mytest/

Note: Replace localhost with the appropriate IP address or hostname of the server where Tomcat is installed.注: localhostの代わりに、該当するIPアドレスまたはホスト名をサーバーにTomcatをインストールします。

Note 2: On older Apache 1.3 you will have to use libproxy.so instead:注2 :上古いApache 1.3のlibproxy.soの代わりにを使用する必要があります:

LoadModule proxy_module modules/libproxy.so LoadModuleへproxy_moduleモジュール/ libproxy.so
AddModule mod_proxy.c addmodule mod_proxy.c

Pages: 1 ページ: 1 2