Please browse the categories below to previous answers to questions like yours. If you do not find the answer for your particular situation, ask for help on the appropriate mailing list.
(Answer) (Category) Java Apache Project : (Category) Apache JServ 1.0 : (Category) Configuration :
How to use a servlet to protect a directory.
----------
From: "jon *" jon@clearink.com
To: Java Apache Users java-apache-users@list.working-dogs.com
Subject: Re: protection with a servlet?
Date: Wed, Jul 28, 1999, 11:33 AM

> I would like to alias a servlet to an entire directory so that when ever
> anyone attempts to access a file in that directory then they are given
> the servlet instead of the requested file.  I have seen, read, and set
> up multiple aliases for servlet names but nothing as to aliasing a
> servlet to an entire directory.  Can somebody point me in the direction
> of some documention or offer some other form of help.
>
> Thanks in advance,
>
> Paul Bundick
> Systems Administrator
> Phoenix Integration


Use mod_rewrite.

http://www.apache.org/docs/mod/mod_rewrite.html

-jon
[Append to This Answer]
Previous: (Answer) (EMERGENCY) ajp11: can not connect to host 127.0.0.1:8007, (ERROR) an error returned handling request via protocol "ajpv11"
Next: (Answer) AJP Protocol Error / Malformed AJP request
This document is: http://java.apache.org/faq/?file=263
[Search] [Appearance] [Show Expert Edit Commands]
This is a Faq-O-Matic 2.709.
Please browse the categories below to previous answers to questions like yours. If you do not find the answer for your particular situation, ask for help on the appropriate mailing list.