-----------------------------
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]

Reply via email to