tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Berry" <>
Subject Re: configuring mod_jk - can any one help, please ??
Date Mon, 28 Aug 2006 22:03:32 GMT
I have a setup on a dev machine that is similiar to what you are
trying. Here's how I have mine setup.

LoadModule              jk_module modules/
JkWorkersFile           /opt/apps/tomcat/conf/
JkLogFile               /opt/apps/tomcat/logs/mod_jk.log
JkLogLevel              info
JkLogStampFormat        "[%a %b %d %H:%M:%S %Y] "

<VirtualHost *:80>
        DocumentRoot /opt/projects/virtualhost/web
        ServerName virtualhost
        JkMount /*.jsp worker1
        JkMount /*.do worker1

<Host appBase="/opt/projects/virtualhost/web"
        <Context path="" docBase="/opt/projects/virtualhost/web" />

This is just one way to do it, I know there are others. I urge you to
read up some more on the configuration settings.

If you're going to have more than one virtualhost per machine, you'll
most likely want to have multiple instances of tomcat running - check
the RUNNING.txt that comes with your install for more information
regarding this.

Also, check the recent discussions on this mailing list as I know
there was a thread within the last few weeks discussing this type of
configuration. (searchable)


On 8/28/06, Mansour <> wrote:
> I just tried what you suggested and it didn't work.
> I replcaed the modified version of server.xml with the original as
> Mladen suggested to deleted the newly added lines.
> Now the server.xml is the default one that came with tomcat.
> What changes you want me to try ??
> Eric Berry wrote:
> > From my understanding found here:
> >
> >
> > "The Document Base (also known as the Context Root) directory for this
> > web application, or the pathname to the web application archive file
> > (if this web application is being executed directly from the WAR
> > file). You may specify an absolute pathname for this directory or WAR
> > file, or a pathname that is relative to the appBase directory of the
> > owning Host."
> >
> > Since you've declared your host's documents to start in
> > /path/to/virtualhost, and you've said your default context (default
> > meaning there isn't a path specified - path="") starts in webapp1. I
> > would think that you're actually telling tomcat to locate jsps based
> > on this path /path/to/virtualhost/webapp1
> >
> > If this is the case, then I think you should put you hello.jsp in
> > /path/to/virtualhost/webapp1. Someone please correct me if I'm wrong.
> >
> > Eric
> >
> > On 8/28/06, Mansour <> wrote:
> ---------------------------------------------------------------------
> To start a new topic, e-mail:
> To unsubscribe, e-mail:
> For additional commands, e-mail:

Learn from the past. Live in the present. Plan for the future.

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

View raw message