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와 아파치 2.0에서는 사용자 (아파치 1.3에 대한 지침도 제공)를 설치하고 실행합니다.
The instructions are applicable (have been tested) for Windows as well as Linux platform. 의 지침에 적용 (이 테스트를 거침)에 대한 창에 물론 리눅스 플랫폼합니다.

Assume you want to map test directory of Apache to the mytest web application of Tomcat. 추측하려는 맵 테스트 디렉토리에 아파치 웹 응용 프로그램의 mytest tomcat을합니다. Change the name appropriately to suit your configuration. 적절하게 구성에 맞게 이름을 변경합니다.

1. Shutdown Apache & Tomcat Server 아파치 & 커넥터 관리 시스템 종료

2. Add the following lines to httpd.conf (in conf directory of Apache base directory) 장바구니 다음과 같은 줄을 httpd.conf (구성 디렉토리에 아파치 기본 디렉토리)

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. 참고 사항 : 해당 주소 또는 호스트 이름을 바꿉니다 로컬 호스트의 서버가 설치되어있는 tomcat합니다.

Note 2: On older Apache 1.3 you will have to use libproxy.so instead: 참고 2 : 컴퓨터를 이전 아파치 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