Re: AW: Multiple Tomcat Servers connect to IIS

2011-08-11 Thread André Warnier

Christopher Schultz wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Alexander,

On 8/10/2011 8:12 AM, Alexander Diedler wrote:

my uriworkermap.properties /manager=worker1


Mapped /manager

/manager/*=worker1 /docs=worker1 /*=worker1 /go/*=worker1 
/go=worker1 /show/*=worker1


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


/manager=worker2


Re-mapped /manager

This re-mapping appears to happen for all URIs.

I've never worked with IIS -- can you specify a uriworkermap.properties
for each virtual host? I think that's what you want to do, but it looks
like you're configured everything in a single set of files, here.



Read the docs...
;-)

It appears that for IIS and isapi_redirect (and differently from Apache+mod_jk), there is 
only one uriworkermap.properties files, being used for all the IIS virtual hosts (and 
its single path is in the Registry under a single key).
However, in the (single) uriworkermap.properties, there is a way to specify the hostname, 
in addition to the URI being proxied.

So you can actually have things like :

/serverA.company.com/app1/*=tomcat1

/serverB.company.com/app1/*=tomcat2

I never tried it, but according to Alexander it works and solves his problem.



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



AW: AW: Multiple Tomcat Servers connect to IIS

2011-08-11 Thread Alexander Diedler
Hello,
Yes thanks, with adding the vHost Name it works with one exception. 
I cannot access the Manager App. I get a auth Window, the credentials are 
correct, but I do not get into the Manager App.

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

##vHosts for Tomcat 7.0.19

/SiteB.xxx.de/*=worker2
/SiteB.xxx.de *=worker2
/SiteB.xxx.de /manager/*=worker2
/SiteB.xxx.de /manager*=worker2

Best regards
Alexander



-Ursprüngliche Nachricht-
Von: André Warnier [mailto:a...@ice-sa.com] 
Gesendet: Donnerstag, 11. August 2011 10:30
An: Tomcat Users List
Betreff: Re: AW: Multiple Tomcat Servers connect to IIS

Christopher Schultz wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Alexander,
 
 On 8/10/2011 8:12 AM, Alexander Diedler wrote:
 my uriworkermap.properties /manager=worker1
 
 Mapped /manager
 
 /manager/*=worker1 /docs=worker1 /*=worker1 /go/*=worker1
 /go=worker1 /show/*=worker1

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


 /manager=worker2
 
 Re-mapped /manager
 
 This re-mapping appears to happen for all URIs.
 
 I've never worked with IIS -- can you specify a 
 uriworkermap.properties for each virtual host? I think that's what you 
 want to do, but it looks like you're configured everything in a single set of 
 files, here.
 

Read the docs...
;-)

It appears that for IIS and isapi_redirect (and differently from 
Apache+mod_jk), there is only one uriworkermap.properties files, being used for 
all the IIS virtual hosts (and its single path is in the Registry under a 
single key).
However, in the (single) uriworkermap.properties, there is a way to specify the 
hostname, in addition to the URI being proxied.
So you can actually have things like :

/serverA.company.com/app1/*=tomcat1

/serverB.company.com/app1/*=tomcat2

I never tried it, but according to Alexander it works and solves his problem.



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



smime.p7s
Description: S/MIME cryptographic signature


Re: AW: AW: Multiple Tomcat Servers connect to IIS

2011-08-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Alexander,

On 8/11/2011 5:45 AM, Alexander Diedler wrote:
 Hello, Yes thanks, with adding the vHost Name it works with one 
 exception. I cannot access the Manager App. I get a auth Window, the 
 credentials are correct, but I do not get into the Manager App.
 
 Uriworkermap.properties:
 
 /manager=worker1

Uh... still missing virtual host?

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk5EKjsACgkQ9CaO5/Lv0PCG+wCePtyETQsa3W1Y98sw4YMlLZUu
YdIAn0onDQHz82Le6iwyxMvYouWC5WJI
=XUSF
-END PGP SIGNATURE-

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



Re: AW: AW: Multiple Tomcat Servers connect to IIS

2011-08-11 Thread André Warnier

Alexander Diedler wrote:

Hello,
Yes thanks, with adding the vHost Name it works with one exception. 
I cannot access the Manager App. I get a auth Window, the credentials are correct, but I do not get into the Manager App.


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

##vHosts for Tomcat 7.0.19

/SiteB.xxx.de/*=worker2
/SiteB.xxx.de *=worker2
/SiteB.xxx.de /manager/*=worker2
/SiteB.xxx.de /manager*=worker2


Alexander,
as Chris points out succintely, it looks like you are a bit confused and may be confusing 
isapi_redirector.  When you say :


 /manager/*=worker1

in a virtual host context, that means that isapi_redirector ignores the hostname part, and 
is sending all requests for /manager/* to worker1.

But then later you say

/SiteB.xxx.de/manager/*=worker2

which contradicts the above.
Also,

/SiteB.xxx.de/*=worker2
and
/SiteB.xxx.de/manager/*=worker2

overlap.  There is no real reason for the second line, after the first.
So it's a bit hard to guess what isapi_redirector will do with all these superfluous and 
contradictory instructions.

And even worse, you say
 /*=worker1
So it means that you are sending everything to worker1, leaving nothing for 
worker2.
One wonders how poor worker2 gets anything to do at all..
Get a cup of coffee, sit down and write down, on paper,
- which URLs you do /not/ want to go to Tomcat, but be processed locally by the httpd 
front-end
- for the URLs which /should/ go to Tomcat, which ones should go to tomcat1 and which 
should go to tomcat2

Then think that when you write
/*
that also covers /abc, /abcd/, /xyz, /xyz/abc, etc...

If everything addressed to siteA should go to the tomcat worker1, and everything 
addressed to siteB should go to the tomcat worker2, then the following 2 lines in 
uriworkermap.properties should be enough :


/siteA.xxx.de/*=worker1
/siteB.xxx.de/*=worker2

but then one wonders why you even use a front-end httpd.


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



Multiple Tomcat Servers connect to IIS

2011-08-10 Thread Alexander Diedler
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 ?

 

Best regards

Alexander

 



smime.p7s
Description: S/MIME cryptographic signature


Re: Multiple Tomcat Servers connect to IIS

2011-08-10 Thread André Warnier

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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



AW: Multiple Tomcat Servers connect to IIS

2011-08-10 Thread Alexander Diedler
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
AliasSiteA.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
AliasSiteB.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.0and 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:a...@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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



smime.p7s
Description: S/MIME cryptographic signature


AW: Multiple Tomcat Servers connect to IIS

2011-08-10 Thread Alexander Diedler
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
AliasSiteA.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
AliasSiteB.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:a...@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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



smime.p7s
Description: S/MIME cryptographic signature


Re: AW: Multiple Tomcat Servers connect to IIS

2011-08-10 Thread André Warnier

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
AliasSiteA.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
AliasSiteA.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
   AliasSiteA.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
  AliasSiteB.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
AliasSiteA.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
AliasSiteB.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:a...@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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




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



Re: AW: Multiple Tomcat Servers connect to IIS

2011-08-10 Thread André Warnier
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
  AliasSiteA.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
AliasSiteA.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
   AliasSiteA.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
  AliasSiteB.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
AliasSiteA.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
AliasSiteB.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:a...@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-unsubscr

Re: AW: Multiple Tomcat Servers connect to IIS

2011-08-10 Thread André Warnier

Erratum: I meant in the section Virtual host integration - IIS

André Warnier wrote:
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
  AliasSiteA.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
AliasSiteA.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
   AliasSiteA.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
  AliasSiteB.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
AliasSiteA.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
AliasSiteB.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:a...@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

AW: AW: Multiple Tomcat Servers connect to IIS

2011-08-10 Thread Alexander Diedler
YES, this works! I have to define the virtual host in die
uriworkermap.properties.

Best regards
Alexander Diedler


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

Erratum: I meant in the section Virtual host integration - IIS

André Warnier wrote:
 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
   AliasSiteA.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
 AliasSiteA.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
AliasSiteA.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
   AliasSiteB.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
 AliasSiteA.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
 AliasSiteB.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:a...@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

Re: AW: Multiple Tomcat Servers connect to IIS

2011-08-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Alexander,

On 8/10/2011 8:12 AM, Alexander Diedler wrote:
 my uriworkermap.properties /manager=worker1

Mapped /manager

 /manager/*=worker1 /docs=worker1 /*=worker1 /go/*=worker1 
 /go=worker1 /show/*=worker1
 
 # Mapping all URI which end with a common suffix: *.jsp=worker1
 
 
 /manager=worker2

Re-mapped /manager

This re-mapping appears to happen for all URIs.

I've never worked with IIS -- can you specify a uriworkermap.properties
for each virtual host? I think that's what you want to do, but it looks
like you're configured everything in a single set of files, here.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk5CuPYACgkQ9CaO5/Lv0PD/swCeLaSVhgeWOwIf5xxj7EioKOzq
XagAn2385kqmjDIc0srb+K5Mr0tS5RZN
=aYYQ
-END PGP SIGNATURE-

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