The simplest configuration is described. La più semplice configurazione è descritto. It assumes you already have Tomcat 5.5 and Apache 2.0 (instructions for Apache 1.3 is also provided) installed and running. Esso assume che si dispone già di 5,5 Tomcat e Apache 2.0 (istruzioni per Apache 1,3 è inoltre fornito) installato e funzionante.
The instructions are applicable (have been tested) for Windows as well as Linux platform. Le istruzioni sono applicabili (sono stati testati) per Windows e Linux come piattaforma.

Assume you want to map test directory of Apache to the mytest web application of Tomcat. Assume che tu voglia mappa prova directory di Apache per il mytest applicazione web di Tomcat. Change the name appropriately to suit your configuration. Cambiare il nome appropriato per soddisfare la propria configurazione.

1. Shutdown Apache & Tomcat Server Arresto di Apache e server Tomcat

2. Add the following lines to httpd.conf (in conf directory of Apache base directory) Aggiungere le seguenti linee di httpd.conf (nella directory conf di Apache directory di base)

LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_module modules / mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so LoadModule proxy_http_module modules / mod_proxy_http.so
ProxyPass /test/ http://localhost:8081/mytest/ ProxyPass / test / http://localhost:8081/mytest/
ProxyPassReverse /test/ http://localhost:8081/mytest/ ProxyPassReverse / test / http://localhost:8081/mytest/

Note: Replace localhost with the appropriate IP address or hostname of the server where Tomcat is installed. Nota: Sostituire il localhost con l'appropriato indirizzo IP o il nome host del server Tomcat in cui è installato.

Note 2: On older Apache 1.3 you will have to use libproxy.so instead: Nota 2: Il più anziani Apache 1,3 dovrete usare invece libproxy.so:

LoadModule proxy_module modules/libproxy.so LoadModule proxy_module modules / libproxy.so
AddModule mod_proxy.c AddModule mod_proxy.c

Pages: 1 Pagine: 1 2