Hi Krist, Sorry. My English doesn't good !!! You're right, I want a particular request to be dropped in stead of forwarded to the backend,
Do you have any example using RewriteRule ?? Thank you Ricardo On Tue, May 5, 2009 at 4:48 AM, Krist van Besien <krist.vanbes...@gmail.com>wrote: > On Mon, May 4, 2009 at 10:34 PM, ricardo13 <ricardoogra...@gmail.com> > wrote: > > > In this > > http://www.nabble.com/RewriteMap-PRG-By-Example-Using-C-to23283305.htmllink > > , I use a external program (in C) to rewrite URLs. > > > > In program, when I typed in browser localhost/1, or localhost/2, or > > localhost/3, they're mapped to a resource (a page). > > > > I have a reverse proxy then, when I typed in browser localhost/1, or > > localhost/2, or localhost/3, the request are dispatch to other machines > > (backend). > > Now, I would like of play out a request when, for example, the URL to be > /4. > > URLs (localhost/4) to discard (not dispatch to backend). > > I don't understand what you mean by "play out a request". However if > you want a particular request to be dropped in stead of forwarded to > the backend, than there are several possibilities. > > - Have a RewriteRule catch these requests and deny them, put it before > the rewrite rule that sends requests to the backend. > - Use a <Location> block. > - Have your RewriteRule program deal with it. > > Krist > > -- > krist.vanbes...@gmail.com > kr...@vanbesien.org > Bremgarten b. Bern, Switzerland > -- > A: It reverses the normal flow of conversation. > Q: What's wrong with top-posting? > A: Top-posting. > Q: What's the biggest scourge on plain text email discussions? > > --------------------------------------------------------------------- > The official User-To-User support forum of the Apache HTTP Server Project. > See <URL:http://httpd.apache.org/userslist.html> for more info. > To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org > " from the digest: users-digest-unsubscr...@httpd.apache.org > For additional commands, e-mail: users-h...@httpd.apache.org > > -- Muito Obrigado Ricardo