tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Warnier ...@ice-sa.com>
Subject Re: AW: Multiple Tomcat Servers connect to IIS
Date Wed, 10 Aug 2011 13:35:02 GMT
Apart from the stuff below, it looks as if you'll have to use (for 
uriworkermap.properties), the form that is mentioned here :

http://tomcat.apache.org/connectors-doc/reference/uriworkermap.html
in the section "IIS"

(at least if I understand correctly what you are trying to do, and how this works with IIS)


André Warnier wrote:
> There is something else wrong in your server.xml.
> It is not the cause of the problem, but it is confusing, so it's better 
> to correct these issues right now.
> 
> I)
>  > 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>
> 
> a) If in the Engine, you have : defaultHost="localhost"
> then you should have a <Host name="localhost"> as the default Host.
> 
> b) <Host name="siteA.xxx.de">
> and
> <Alias>SiteA.xxx.de</Alias>
> is a duplication.
> 
> Suggested correction :
> 
>  > 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="localhost">
>    <Alias>SiteA.xxx.de</Alias>
> 
> (now it makes sense to have the Alias)
> 
> II)
> 
> Suggestion:
> 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="loclhost">
>   <Alias>SiteB.xxx.de</Alias>
> ...
> 
> Then, a question : in IIS, you also have those 2 "virtual sites" 
> defined, yes ?
> 
> 
> 
> 
> Alexander Diedler wrote:
>> Sorry, One mistake in the server.xml conf below, I correct them.
>>
>> -----Ursprüngliche Nachricht-----
>> Von: Alexander Diedler Gesendet: Mittwoch, 10. August 2011 14:10
>> An: 'Tomcat Users List'; 'Tomcat Users List'
>> Betreff: AW: Multiple Tomcat Servers connect to IIS
>>
>> 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="siteB.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  (where only SiteB.xxx.de is known) 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
>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 


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


Mime
View raw message