tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Berry" <elbe...@gmail.com>
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.

-------httpd.conf
LoadModule              jk_module modules/mod_jk.so
JkWorkersFile           /opt/apps/tomcat/conf/workers.properties
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
</VirtualHost>

-------server.xml
<Host appBase="/opt/projects/virtualhost/web"
        name="virtualhost">
        <Context path="" docBase="/opt/projects/virtualhost/web" />
</Host>

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.
http://tomcat.apache.org/lists.html
http://marc.theaimsgroup.com/?l=tomcat-user (searchable)

Eric


On 8/28/06, Mansour <mansour77+lists@ownmail.net> 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:
> > http://tomcat.apache.org/tomcat-5.5-doc/config/context.html
> >
> > "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 <mansour77+lists@ownmail.net> wrote:
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>


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

---------------------------------------------------------------------
To start a new topic, e-mail: users@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