Re: 2 newbie questions: Apache-tomcat

2003-07-18 Thread John Turner
On Fri, 18 Jul 2003 16:45:42 +0200, Fischer, Ilona 
[EMAIL PROTECTED] wrote:

1. is it possibly apply aliases to tomcat?
For example: the webapp-root is /www/mywebapp. I want to mount an 
directory /other/directory/help to the name help
(httpd.conf: alias /help other/directory/help). But when i'm calling
http://mywebsite/help it crash's with a 404 error:o( . When i'm using 
JRUN,
all is okay. Jrun handle aliases without problems. But Tomcat don't???
in server.xml:

Context path=/help docBase=/other/directory/help
/Context
2. is the Option JkMount /*.jsp worker1 the same as JkMount /*/*.jsp
worker1? Or means /*.jsp only the *.jsp in the root of my webapp?
Can i wrote something like that:JkMount /servlet/* worker1
JkMount /anotherdirectory/servlet/* worker2
and it works? How about regexpressions in the JkMount-option?
#1: no.  The second one is invalid, only one wildcard (*) is allowed.
#2: /*.jsp means send all requests ending in .jsp to Tomcat regardless 
of the directory structure
#3: yes. /servlet/* matches http://localhost/servlet/myServlet but not 
http://localhost/someDir/servlet/myServlet.
#4: no.

Best thing to do is try it and see.

John

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: 2 newbie questions: Apache-tomcat

2003-07-18 Thread Ralph Einfeldt

If you go this way you you have to be carefull with the 
alias directive. (If you let tomcat serve everything,
you don't need the alias, but that's quite uncommon)

If you have static resources that are directly delivered 
through apache, apache has to alias just this resources, 
not the the ones that are delivered through tomcat.
(Otherwise tomcat cant match the url against /help.

Another thing is, that you create a new context for the
alias. If help is just one part of a webapp this can have
some impact on the application.

Another option is to use the alias in apache as it is,
and setup tomcat to match the alias url.

Context path=/other

and have a file like
AppRoot/other/directory/help/index.html

Or 
Context path=
and have a file like
AppRoot/webapp/other/directory/help/index.jsp

 -Original Message-
 From: John Turner [mailto:[EMAIL PROTECTED]
 Sent: Friday, July 18, 2003 4:53 PM
 To: Tomcat Users List
 Subject: Re: 2 newbie questions: Apache-tomcat
 
 
 in server.xml:
 
 Context path=/help docBase=/other/directory/help
 /Context
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]