You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Federico Fernandez Cruz <fe...@dilmun.ls.fi.upm.es> on 2003/12/11 13:57:27 UTC
Apache Tomcat jk2... is it possible?
Hi all!
I am using tomcat 5 and I want to do some integration work with Apache
and mod_jk2.
Is there a direct way to map a whole web application in apache? It works
but I have to write a lot of [uri:*****] commands in mi
workers2.properties file.
I have tried WebXml2Jk but when I insert the file (using Include) I get
a lot of errors about Alias first and JkUriSet Host later...
I am planning to do some work with Apache SSL. Will I be able to read
all those SSL variables from Tomcat?
Any help will be appreciated! TIA
Re: Apache Tomcat jk2... is it possible?
Posted by Federico Fernandez Cruz <fe...@dilmun.ls.fi.upm.es>.
Thanks! Now it works! :-)
I can access my web application through SSL. How can I get all those SSL
variables that apache has already set ? Should I tell something more to JK?
Thanks!
Jörg Werner wrote:
>Hello!
>
>Please take a look at this thread
>http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg110822.html
>
>In short, the solution is to build mod_jk2 from
>jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz and not from the sources
>bundled with tomcat. I had the same problem and it now works.
>
>Jörg
>
>
Re: Apache Tomcat jk2... is it possible?
Posted by Jörg Werner <jo...@pi5.physik.uni-stuttgart.de>.
Hello!
Please take a look at this thread
http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg110822.html
In short, the solution is to build mod_jk2 from
jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz and not from the sources
bundled with tomcat. I had the same problem and it now works.
Jörg
--
Dipl-Phys. Jörg Werner j.werner@physik.uni-stuttgart.de
Universität Stuttgart
5. physikalisches Institut Telefon: 0711/685-4951
Pfaffenwaldring 57 Telefax: 0711/685-3810
D-70550 Stuttgart
Visit our Homepage: http://www.physik.uni-stuttgart.de/institute/pi/5/
index.html
My private Homepage: http://schreibubi.pi5.physik.uni-stuttgart.de/
GPG-Key fingerprint: 6630 6A73 7725 483C 1594 1D64 3F92 5251 8710 EDF6
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Apache Tomcat jk2... is it possible?
Posted by Nikola Milutinovic <Ni...@ev.co.yu>.
Federico Fernandez Cruz wrote:
> By "whole web application" I mean the entire application... well...
>
> I have a context inside Tomcat called UserMan. I want to map an Apache
> URL to this application...
>
> In my workers2.properties I put these lines...
>
> [uri:/UserMan]
> info=Example webapp in the default context.
> context=/UserMan
> debug=0
This should suffice, although you haven't specified a worker for this context.
> [uri:/UserMan/*]
> info=Extension mapping
>
>
> But my JSPs redirect to /UserMan/nav/ and I get errors about resource
> not available... then I have to put another lines
>
> [uri:/UserMan/nav/*.jsp]
> info=Extension mapping
>
>
> I think that this method is error prone so that was my question. How to
> map the whole web application?
> Maybe I am doing something wrong.. (sure!)
Here is mine (although I haven't tried accessing in subdir):
[logger]
level=DEBUG
[config:]
debug=0
debugEnv=0
[uriMap:]
info=Maps the requests. Options: debug
debug=0
# Alternate file logger
[logger.file:0]
level=DEBUG
file=/var/log/httpd/mod_jk2.log
[workerEnv:]
info=Global server options
timing=1
debug=0
[channel.un:unixsock]
info=Main socket to Tomcat engine
file=/var/tomcat4/work/tomcat.sock
[status:]
info=Status worker, displays runtime informations
[ajp13:unixsock]
info=Default AJP 1.3 worker
channel=channel.un:unixsock
[uri:/jkstatus/*]
info=Display status information and checks the config file for changes.
group=status:
[uri:www.elektrovojvodina.co.yu/racun]
info=Consumer bill
group=ajp13:unixsock
context=/racun
Nix.
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Apache Tomcat jk2... is it possible?
Posted by Federico Fernandez Cruz <fe...@dilmun.ls.fi.upm.es>.
By "whole web application" I mean the entire application... well...
I have a context inside Tomcat called UserMan. I want to map an Apache
URL to this application...
In my workers2.properties I put these lines...
[uri:/UserMan]
info=Example webapp in the default context.
context=/UserMan
debug=0
[uri:/UserMan/*]
info=Extension mapping
But my JSPs redirect to /UserMan/nav/ and I get errors about resource
not available... then I have to put another lines
[uri:/UserMan/nav/*.jsp]
info=Extension mapping
I think that this method is error prone so that was my question. How to
map the whole web application?
Maybe I am doing something wrong.. (sure!)
Thanks!
Nikola Milutinovic wrote:
> Federico Fernandez Cruz wrote:
>
>> Hi all!
>>
>> I am using tomcat 5 and I want to do some integration work with
>> Apache and mod_jk2.
>>
>> Is there a direct way to map a whole web application in apache? It
>> works but I have to write a lot of [uri:*****] commands in mi
>> workers2.properties file.
>
>
> What do you mean by "whole web application"?
>
> That URI mapping IS mapping one whole web-app.
>
>> I am planning to do some work with Apache SSL. Will I be able to read
>> all those SSL variables from Tomcat?
>
>
> You should be able to access client certificate via HttpRequest object.
>
> Nix.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
Re: Apache Tomcat jk2... is it possible?
Posted by Nikola Milutinovic <Ni...@ev.co.yu>.
Federico Fernandez Cruz wrote:
> Hi all!
>
> I am using tomcat 5 and I want to do some integration work with Apache
> and mod_jk2.
>
> Is there a direct way to map a whole web application in apache? It works
> but I have to write a lot of [uri:*****] commands in mi
> workers2.properties file.
What do you mean by "whole web application"?
That URI mapping IS mapping one whole web-app.
> I am planning to do some work with Apache SSL. Will I be able to read
> all those SSL variables from Tomcat?
You should be able to access client certificate via HttpRequest object.
Nix.
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org