io ho fatto così su iis 6, ma la cosa è identica anche su iis5 (bisogna solo saltare la parte in cui si richiede a iis 6 di girare nel safe mode di iis 5):
1: Scaricare il file isapi_redirect.dll
2:
codice:
INSTALLAZIONE DI JAKARTA ISAPI REDIRECTOR
---------------------------------------------------------
1. Copiare il file isapi_redirect.dll nella cartella bin di Tomcat5 , nel mio caso C:\Programmi\Apache Software Foundation\Tomcat 5.0\bin
2. Copiare i files uriworkermap.properties e workers.properties nella cartella conf di Tomcat 5, nel mio caso C:\Programmi\Apache Software Foundation\Tomcat 5.0\conf
3. Modificare il file isapi_redirect.reg (mostrato di seguito) in modo tale da far puntare le path al percorso corretto di Tomcat 5 , nel mio caso
tomcat 5 è installato sotto la directory C:\Programmi\Apache Software Foundation\Tomcat 5.0
REGEDIT4
[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector\1.0]
"extension_uri"="/jakarta/isapi_redirect.dll"
"log_file"="C:\\Programmi\\Apache Software Foundation\\Tomcat 5.0\\logs\\iis_redirect.log"
"log_level"="emerg"
"worker_file"="C:\\Programmi\\Apache Software Foundation\\Tomcat 5.0\\conf\\workers.properties"
"worker_mount_file"="C:\\Programmi\\Apache Software Foundation\\Tomcat 5.0\\conf\\uriworkermap.properties"
4. Su IIS creare una directory virtuale di nome jakarta che punta alla cartella in cui è presente il file isapi_redirect.dll , nel mio caso
C:\Programmi\Apache Software Foundation\Tomcat 5.0\bin\ isapi_redirect.dll e dare le autorizzazioni (sulla directory virtuale) di esecuzione come script ed esegubili.
5. Su IIS andare sul nome del computer (non su Sito Web Predefinito) , tasto destro , click su Proprietà, servizio WWW, click su Modifica ,
seleziona il tab Filtri ISAPI e aggiungi un nuovo filtro avente nome "jakarta" e path che punta al file isapi_redirect.dll , nel mio caso la path è "C:\Programmi\Apache Software Foundation\Tomcat 5.0\bin\isapi_redirect.dll"
6. Riavvia IIS, o tramite il comando IISReset eseguito da console DOS o tramite il riavvio del servizio "Strumenti di amministrazione di IIS".
7. Torna su filtri ISAPI, e verifica se alla sinistra della riga in cui è presente il filtro ISAPI di nome Jakarta è presente la freccia verde.
8. Modificare il file uriworkermap (mostrato di seguito) presente sotto la cartella C:\Programmi\Apache Software Foundation\Tomcat 5.0\conf aggiungendo la ContextPath della web application presente su Tomcat, nel mio caso per esempio sotto WebApps ho
una Web Application di nome Bflow, quindi ho aggiunto la riga /Bflow/*=wlb
# uriworkermap.properties - IIS
#
# This file provides sample mappings for example wlb
# worker defined in workermap.properties.minimal
# The general syntax for this file is:
# [URL]=[Worker name]
/admin/*=wlb
/manager/*=wlb
/jsp-examples/*=wlb
/servlets-examples/*=wlb
/Bflow/*=wlb
# Optionally filter out all .jpeg files inside that context
# For no mapping the url has to start with exclamation (!)
!/servlets-examples/*.jpeg=wlb
#
# Mount jkstatus to /jkmanager
# For production servers you will need to
# secure the access to the /jkmanager url
#
/jkmanager=jkstatus
3: vi posto di seguito il file uriworkermap.properties e workers.properties
uriworkermap.properties:
codice:
# uriworkermap.properties - IIS
#
# This file provides sample mappings for example wlb
# worker defined in workermap.properties.minimal
# The general syntax for this file is:
# [URL]=[Worker name]
/admin/*=wlb
/manager/*=wlb
/jsp-examples/*=wlb
/servlets-examples/*=wlb
/Bflow/*=wlb
# Optionally filter out all .jpeg files inside that context
# For no mapping the url has to start with exclamation (!)
!/servlets-examples/*.jpeg=wlb
#
# Mount jkstatus to /jkmanager
# For production servers you will need to
# secure the access to the /jkmanager url
#
/jkmanager=jkstatus
workers.properties
codice:
# workers.properties.minimal -
#
# This file provides minimal jk configuration properties needed to
# connect to Tomcat.
#
# The workers that jk should create and work with
#
worker.list=wlb,jkstatus
#
# Defining a worker named ajp13w and of type ajp13
# Note that the name and the type do not have to match.
#
worker.ajp13w.type=ajp13
worker.ajp13w.host=localhost
worker.ajp13w.port=8009
#
# Defining a load balancer
#
worker.wlb.type=lb
worker.wlb.balance_workers=ajp13w
#
# Define status worker
#
worker.jkstatus.type=status
e il file per aggiungere le info al registro (isapi_redirect.reg)
codice:
REGEDIT4
[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector\1.0]
"extension_uri"="/jakarta/isapi_redirect.dll"
"log_file"="C:\\Programmi\\Apache Software Foundation\\Tomcat 5.0\\logs\\iis_redirect.log"
"log_level"="emerg"
"worker_file"="C:\\Programmi\\Apache Software Foundation\\Tomcat 5.0\\conf\\workers.properties"
"worker_mount_file"="C:\\Programmi\\Apache Software Foundation\\Tomcat 5.0\\conf\\uriworkermap.properties"
Spero di avervi dato una mano