tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric J. Pinnell" <e...@iCky.org>
Subject RE: mod_jk2 uri questions
Date Mon, 07 Jul 2003 14:49:56 GMT
Hi,

Try removing the hostname from the URI.  So

[uri:www.mysite.com/*.jsp]

would just be

[uri:/*.jsp]
and
[uri:/do/*]

and so on and so forth.

-e

On Mon, 7 Jul 2003, Catalin Constantin wrote:

> nope !
> it is the same thing !
>
> anyway i am sure that it reads the correct file cause
> if i remove the *.jsp line then the jsp files are printed (source).
>
> so it must be something else !
>
> any clue ?
>
> Catalin Constantin
> Bounce Software
> www.bounce-software.com
>
>
> >
> > -----Original Message-----
> > From: Eric J. Pinnell [mailto:eric@iCky.org]
> > Sent: Monday, July 07, 2003 5:36 PM
> > To: Tomcat Users List
> >
> > I don't know if this will work but try adding
> >
> > JkSet config.file /path/to/workers2.properties
> >
> > just under the LoadModule.  That way you know for sure it's
> > reading the
> > file you want.
> >
> > -e
> >
> > On Mon, 7 Jul 2003, Catalin Constantin wrote:
> >
> > > in my httpd.conf i have
> > > LoadModule jk2_module modules/mod_jk2.so
> > >
> > > <VirtualHost some.ip:80>
> > >         DocumentRoot /nethosting/mysite.com/jsp/ROOT
> > >         ServerName www.mysite.com
> > >         ServerAdmin webmaster@mysite.com
> > >         ServerPath /nethosting/mysite.com/jsp/ROOTs
> > >         CustomLog /var/log/httpd/mysite.com/access.log combined
> > >         ErrorLog /var/log/httpd/mysite.com/error.log
> > > </VirtualHost>
> > >
> > > so basically nothing that has to do with jk2 in my httpd.conf file !
> > >
> > > below is a full listing of my workers2.properties file
> > >
> > > --- begin ----
> > > [logger]
> > > level=DEBUG
> > >
> > > # Define the comunication channel
> > > #[channel.jni:jni]
> > > #info=The jni channel, used if tomcat is started inprocess
> > >
> > > [shm]
> > > file=/var/log/httpd/shm.file
> > > size=1048576
> > >
> > > # Define the parameters for the Java Virtual Machine
> > > #[vm:]
> > > #info=Parameters used to load a JVM in the server process
> > >
> > #OPT=-Djava.class.path=${TOMCAT_HOME}/bin/tomcat-jni.jar;${TOM
> > CAT_HOME}/serv
> > > er/lib/catalina.jar
> > > #OPT=-Dtomcat.home=${TOMCAT_HOME}
> > > #OPT=-Dcatalina.home=${TOMCAT_HOME}
> > > #OPT=-Xmx128M
> > >
> > > # JNI worker startup handler
> > > #[worker.jni:onStartup]
> > > #info=Command to be executed by the VM on startup. This one
> > will start
> > > tomcat.
> > > #class=org/apache/jk/apr/TomcatStarter
> > > #ARG=start
> > > #stdout=/var/log/httpd/stdout.log
> > > #stderr=/var/log/httpd/stderr.log
> > >
> > > # JNI worker shutdown handler
> > > #[worker.jni:onShutdown]
> > > #info=Command to be executed by the VM on shutdown. This
> > one will stop
> > > tomcat.
> > > #class=org/apache/jk/apr/TomcatStarter
> > > #ARG=stop
> > >
> > > # Example socket channel, override port and host.
> > > [channel.socket:localhost:8009]
> > > port=8009
> > > host=127.0.0.1
> > >
> > > [ajp13:localhost:8009]
> > > channel=channel.socket:localhost:8009
> > >
> > > # ksi webapp configuration (virtualhost)
> > > [uri:www.mysite.com/*.jsp]
> > > info=Map .jsp files
> > >
> > > [uri:www.mysite.com/do/*]
> > > info=Map do actions
> > >
> > > [uri:www.mysite.com/manager/*]
> > > info=Map the manager webapp
> > > --- end   ----
> > >
> > > i am using apache 2.0.46
> > > and tomcat 4.1
> > >
> > > thanx again !
> > >
> > > Catalin Constantin
> > > Bounce Software
> > > www.bounce-software.com
> > >
> > >
> > > >
> > > > -----Original Message-----
> > > > From: Eric J. Pinnell [mailto:eric@iCky.org]
> > > > Sent: Monday, July 07, 2003 5:27 PM
> > > > To: Tomcat Users List
> > > >
> > > > Hi,
> > > >
> > > > What is your httpd.conf entry?  Your workers2.properties
> > > > files looks ok.
> > > > You include things you want Tomcat to do rather than exclude
> > > > things.  You
> > > > are not including /images so apache should handle those requests.
> > > >
> > > > -e
> > > >
> > > > On Mon, 7 Jul 2003, Catalin Constantin wrote:
> > > >
> > > > > hi there
> > > > >
> > > > > i have in my workers2.properties
> > > > > the following uri mappings:
> > > > >
> > > > > [uri:www.mysite.com/*.jsp]
> > > > > info=Map .jsp files
> > > > >
> > > > > [uri:www.mysite.com/do/*]
> > > > > info=Map do actions
> > > > >
> > > > > [uri:www.mysite.com/manager/*]
> > > > > info=Map the manager webapp
> > > > >
> > > > > why does tomcat handle the requests to
> > > > > http://www.mysite.com/images ?
> > > > > (eg: i see the tomcat directory listing, instead of the
> > > > Apache 2.0.46
> > > > > forbidden error)
> > > > >
> > > > > thank you !
> > > > >
> > > > >
> > > > > Catalin Constantin
> > > > > Bounce Software
> > > > > www.bounce-software.com
> > > > >
> > > > >
> > > > >
> > > >
> > ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail:
> > tomcat-user-unsubscribe@jakarta.apache.org
> > > > > For additional commands, e-mail:
> > tomcat-user-help@jakarta.apache.org
> > > > >
> > > > >
> > > >
> > > >
> > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > > > For additional commands, e-mail:
> > tomcat-user-help@jakarta.apache.org
> > > >
> > >
> > >
> > >
> > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> > >
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message