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.它假設您已經有5.5的Tomcat和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向的mytest的Web應用的Tomcat 。 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中(在配置目錄中的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.注:取代本地與適當的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