Re: How do I play out a request ??

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.vanbesien@xxxxxxxxx> wrote:
On Mon, May 4, 2009 at 10:34 PM, ricardo13 <ricardoogrande@xxxxxxxxx> wrote:

> In this
> http://www.nabble.com/RewriteMap-PRG-By-Example-Using-C-to23283305.html link
> , 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.vanbesien@xxxxxxxxx
krist@xxxxxxxxxxxxx
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-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




--
Muito Obrigado

Ricardo

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux