You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by David Boyer <Da...@bvu.edu> on 2003/01/10 00:21:04 UTC

Help Please! Q: Perl Compatible Regular Expressions and uri mapping

I'm using the 2.0.2 version of isapi_redirector2.dll which can use regex pattern matching, and it looks like it's based on PCRE 3.9.
 
I've been trying for most of the afternoon to successfully use regex's in my workers2.properties file, but I've had no success. Any thoughts on the PCRE that would match this uri:
 
/students/stuusername/servlet/servletname
 
"stuusername" will be one or more alpha-numeric characters
"servletname" will be one or more alpha-numeric characters
 
Basically, each of our students has a Tomcat-enabled home directory on our web server, and I'd like to come up with a single PCRE for use in workers2.properties that'll match any of their servlets. Using Tomcat 4.1.18 on W2K Server (IIS 5.0), JDK 1.4.1_01.


Re: Help Please! Q: Perl Compatible Regular Expressions and urimapping

Posted by David Boyer <da...@bvu.edu>.
We are doing that already; that's not the problem. The problem with the
isapi filter uri mapping in workers2.properties. I can create a separate
mapping to each context based on the uri, but since they all follow a common
pattern I'd rather use a single regex seeing how isapi_redirector2.dll
version 2.0.2 is supposed to support this. The problem with adding
individual mappings for each context is that I'd have approximately 1,500
mappings in workers2.properties and I'd also need to make regular changes as
students come and go. The isapi filter doesn't appear to reload its
configuration unless IIS is restarted, plus I'd rather not manage that many
mappings if a single regex-based mapping could accomplish the same thing.

Thanks for your suggestion nonetheless!


----- Original Message -----
From: "Noel J. Bergman" <no...@devtech.com>
To: "Tomcat Users List" <to...@jakarta.apache.org>
Sent: Thursday, January 09, 2003 8:50 PM
Subject: RE: Help Please! Q: Perl Compatible Regular Expressions and
urimapping


> Why don't you give each student their own webapp?  It would be pretty easy
> to setup.  In the webapps/ directory, each student would have a
student.xml
> file, which defines the <Context> element, e.g.,
>
> <Context path="/studentName" docBase="studentName" debug="0"
>          reloadable="true" crossContext="false" />
>
> and then a studentName/ directory containing their webapp.  If desired,
you
> could put a logger into the <Context> element so that each student had his
> or her own log.
>
> --- Noel
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Help Please! Q: Perl Compatible Regular Expressions and urimapping

Posted by "Noel J. Bergman" <no...@devtech.com>.
Why don't you give each student their own webapp?  It would be pretty easy
to setup.  In the webapps/ directory, each student would have a student.xml
file, which defines the <Context> element, e.g.,

<Context path="/studentName" docBase="studentName" debug="0"
         reloadable="true" crossContext="false" />

and then a studentName/ directory containing their webapp.  If desired, you
could put a logger into the <Context> element so that each student had his
or her own log.

	--- Noel


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>