tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Warnier>
Subject Re: Multiple websites in tomcat
Date Tue, 22 Jul 2008 20:33:21 GMT
Sorry, there is a typo in my previous message :
The JkMount lines should be :
JkMount /servlets-examples ajp13w
JkMount /servlets-examples/* ajp13w

(I forgot an "s" in the second one)

Ravi Sharma wrote:
> Hi Andre,
>        Thanks for reply and sorry for my incomplete reply.
> So here is what i have done now.
> First i have reinstalled everything again,So i have fresh environment with
> apache (version 2.2.3) and tomcat (version 5.5).
> JK module(1.2.26 ) is already installed in apache, so i don't need to get it
> from anywhere.
Allright ! That was a very good idea.
Now we have a chance to start from a clean situation.

> You can access following files from this url
> httpd.conf
> server.xml
> jk.conf which is being included in httpd.conf by using this line Include
> conf.d/*.conf
> from this url
I looked at this.  That was also a good idea for now.

STEP 1 :
Stop Tomcat and Apache
Go back to the original configuration files.
Really.  Forget your changes for now. Put back
- the original Tomcat server.xml
- the original Apache httpd.conf
- the original

STEP 2 :
At the end of the original http.conf, add these lines :
JkLogFile /etc/httpd/logs/jk.log
JkLogLevel debug
JkMount /servlets-examples ajp13w
JkMount /servlet-examples/* ajp13w

(note the change of the URLs and the change of the worker name, to match
the existing worker name in

STEP 3 :
Restart Tomcat and Apache, and wait 30 sec.

STEP 4 :
Try :

Both URLs should give you the same result.

With (a), you access Tomcat directly, through its HTTP connector at port
With (b), you access Tomcat through Apache (at port 80), the Apache
mod_jk module, and the Tomcat AJP13 Connector.

Let me know...
And then, we can start making changes again to get the ports you really
want etc..


To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message