-----------------------------
Please read the FAQ!
<http://java.apache.org/faq/>
-----------------------------
To whoever else might be trying to accomplish this...
Finally got it working without a core dump. Your examples below were
correct, but there was some additional changes I had to make. Since I
statically compiled in the modules I had to make sure that mod_jserv
appearred *ABOVE* (<-- very important) mod_rewrite in modules.c This
wasn't the default from how Configure created modules.c Then I had to
make sure that the JServ stuff appearred before the rewrite stuff in the
configuration file.
I'm still of the opinion that mod_rewrite is voodoo magic... I've got to
get a book on regular expression and really learn them. That one class
back in college just doesn't make ya an expert!
Jonathan Tew
Bernie Bernstein wrote:
>
> -----------------------------
> Please read the FAQ!
> <http://java.apache.org/faq/>
> -----------------------------
>
> >Say I have a domain http://www.mydomain.com and I want to have all the
> >urls that start with /thisdir call a specific servlet as a handler.
> >This servlet can then look at the path requested and take the
> >appropriate action.
> >
> >So http://www.mydomain.com/thisdir/status/ would call the servlet as
> >would http://www.mydomain.com/thisdir/update/ etc.
> >
> >I want the one servlet to handle requests for all those paths.
> >
>
> ... in httpd.conf ...
>
> <IfModule mod_rewrite.c>
> RewriteEngine On
> # anything else gets appended to /tc/meta
> RewriteRule ^(.*) /myzone/myservlet$1 [PT]
> </IfModule>
>
> Set up the zone "myzone" which includes servlet "myservlet" and then all
> requests will get passed through that servlet.
>
> eg.
>
> http://www.mydomain.com/thisdir/status/
>
> will expand to:
>
> http://www.mydomain.com/myzone/myservlet/thisdir/status/
>
> and
>
> http://www.mydomain.com/
>
> expands to:
>
> http://www.mydomain.com/myzone/myservlet
>
> IMPORTANT: Be sure that mod_jserv is loaded before mod_rewrite.
>
> Bernie Bernstein
> Talk City Inc.
> voice: 408-871-5320 Join the Conversation.
> email: [EMAIL PROTECTED] http://www.talkcity.com/
>
> --
> --------------------------------------------------------------
> Please read the FAQ! <http://java.apache.org/faq/>
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Archives and Other: <http://java.apache.org/main/mail.html>
> Problems?: [EMAIL PROTECTED]
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]