tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Diedler <adied...@tecracer.de>
Subject AW: Multiple Tomcat Servers connect to IIS
Date Wed, 10 Aug 2011 12:10:12 GMT
Hello,
Yes, but we do not map single Apps like /app1 /app2 ,,.. every App has it
own Host in server.xml and conf/Catalina

My new Worker.properties:
worker.list=worker1,worker2

#Tomcat 6.0.32
worker.worker1.host=localhost
worker.worker1.port=8009
worker.worker1.type=ajp13

#Tomcat 7.0.19
worker.worker2.host=localhost
worker.worker2.port=8010
worker.worker2.type=ajp13

my uriworkermap.properties
/manager=worker1
/manager/*=worker1
/docs=worker1
/*=worker1
/go/*=worker1
/go=worker1
/show/*=worker1

# Mapping all URI which end with a common suffix:
*.jsp=worker1


/manager=worker2
/manager/*=worker2
/docs=worker2
/*=worker2
/go/*=worker2
/go=worker2
/show/*=worker2

# Mapping all URI which end with a common suffix:
*.jsp=worker2

# Exclusions
!*.cfm
!/*/hbpo|/*=*


Server.xml from TC 6.0
<Server port="8005" shutdown="SHUTDOWN">
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
<Engine name="Catalina" defaultHost="localhost" jvmRoute="worker1">
<Host name="siteA.xxx.de">
		<Alias>SiteA.xxx.de</Alias>
			<Valve
className="org.apache.catalina.valves.AccessLogValve" directory="logs"  
               		prefix="siteA_access_log." suffix=".txt"
pattern="common" resolveHosts="false"/>

	</Host>


Server.xml from TC 7.0
<Server port="8006" shutdown="SHUTDOWN">
<Connector port="8010" protocol="AJP/1.3" redirectPort="8444" />
<Engine name="Catalina" defaultHost="localhost" jvmRoute="worker2">
<Host name="siteA.xxx.de">
		<Alias>SiteB.xxx.de</Alias>
			<Valve
className="org.apache.catalina.valves.AccessLogValve" directory="logs"  
               		prefix="siteB_access_log." suffix=".txt"
pattern="common" resolveHosts="false"/>

	</Host>



Now, if a browse http://siteA.xxx.de then I get a Tomcat 404 error from the
TC7.0    and if I browse the http://siteB.xxx.de I get a blank page.. I do
not know where I was thrown.

Best regards
Alexander


-----Ursprüngliche Nachricht-----
Von: André Warnier [mailto:aw@ice-sa.com] 
Gesendet: Mittwoch, 10. August 2011 13:49
An: Tomcat Users List
Betreff: Re: Multiple Tomcat Servers connect to IIS

Alexander Diedler wrote:
> Hello,
> 
> I know the way to conenct a single Tomcat to an IIS in Windows 2003 
> with isapi_redirect.dll, worker.properties and 
> uriworkermap.properties. But, how we can connect two different Tomcats 
> (e.g. Tomcat 6.0.32 and 7.0.19) to Websites in the same IIS ?
> 
>  
For isapi_redirect/mod_jk, a Tomcat is designated as a "worker".
So, in short, just define an additional "worker" in the workers.properties
for the additional Tomcat, and then map some URLs to that worker in
uriworkermap.properties.

Before :

workers.list=worker1

worker.worker1.host=first-tomcat
worker.worker1.port=8009
...

After :

workers.list=worker1,worker2

worker.worker1.host=first-tomcat
worker.worker1.port=8009
...

worker.worker2.host=second-tomcat
worker.worker1.port=8010
...

and, in the new Tomcat, make the AJP Connector port match the one you used
for worker2.

There is a bit kore to it, but that should get you going. There are also
examples in the docs.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message