You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Ralf Praschak <u1...@hs-harz.de> on 2002/03/22 19:44:57 UTC

wildcards in context path (webhosting setup)

hello!

i´ve a little configuring problem under tomcat 4.03 on redhat linux 7.1

i have a structure like this:
- webapps
  + projects
    + project_1
    + project_2
  + students
    + student_1
    + student_2

to deploy servlets under projects or students is no problem (of course
not). but i want that every subfolder can deploy it´s own servlets

i checked out different ways:
1. packages (/servlet/projects.project_1) 
   worked but produced some other problems 

2. a homebase listener <Listener
className="org.apache.catalina.startup.UserConfig.../>
   not accessable from apache

3. own context paths in the server.xml
   <Context path="/projects/project_1" docBase="/projects/project_1" 
            debug="0" reloadable="true" crossContext="true"/>
   works fine, but i´ve to set for each folder a context path... and
restart tomcat every time after adding a user
   the "add user process" runs automatically via cronjobs
   to parse and edit the server.xml is not the problem, but the
restarting ... ;(

so my questions now are, if there is a possiblity to use wildcards or
regexp in a contextpath like *
from apache a JkMount /projects/*/servlet/* ajp13 is enough to get
access to all context paths

or if wildcards or regexp doesn´t work, can i include a config file
within the server.xml like apache can do it?

tnx 4 an answer
regards
ralf praschak








--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>