Re: [EMAIL PROTECTED] Experience in mod_rewrite in Apache 2.2

2007-05-23 Thread Joshua Slive
On 5/23/07, Dmitriy Gorbenko <[EMAIL PROTECTED]> wrote: Yes, but in this case the logic of making decision (doing proxy or redirect) imposes oneself to URL. It still is possible to agree with this. Let's admit, the user is sent URL, in which where is a word proxy. However that logic, which I wi

Re: [EMAIL PROTECTED] Experience in mod_rewrite in Apache 2.2

2007-05-23 Thread Dmitriy Gorbenko
Joshua Slive wrote: > On 5/22/07, Dmitriy Gorbenko <[EMAIL PROTECTED]> wrote: > >> I think I could do it using mod_rewrite, but now I understand, that I >> can't: in apache config file I can create rules, which will makes an >> decision: redirect or proxy request of client (R and P flags). >> But b

Re: [EMAIL PROTECTED] Experience in mod_rewrite in Apache 2.2

2007-05-22 Thread Joshua Slive
On 5/22/07, Dmitriy Gorbenko <[EMAIL PROTECTED]> wrote: I think I could do it using mod_rewrite, but now I understand, that I can't: in apache config file I can create rules, which will makes an decision: redirect or proxy request of client (R and P flags). But by using external program I can't

Re: [EMAIL PROTECTED] Experience in mod_rewrite in Apache 2.2

2007-05-22 Thread Dmitriy Gorbenko
Joshua Slive wrote: > On 5/21/07, Dmitriy Gorbenko <[EMAIL PROTECTED]> wrote: > >> And now, I did not understand how, by using only one >> RewriteRule ^(.+)$ ${rd:%{THE_REQUEST}} >> rule and one programs, I can achieve such goal. > > I can't personally tell what question you are asking here. Wh

Re: [EMAIL PROTECTED] Experience in mod_rewrite in Apache 2.2

2007-05-22 Thread Joshua Slive
On 5/21/07, Dmitriy Gorbenko <[EMAIL PROTECTED]> wrote: And now, I did not understand how, by using only one RewriteRule ^(.+)$ ${rd:%{THE_REQUEST}} rule and one programs, I can achieve such goal. I can't personally tell what question you are asking here. What exactly are you having proble

[EMAIL PROTECTED] Experience in mod_rewrite in Apache 2.2

2007-05-21 Thread Dmitriy Gorbenko
Hello everyone, Recently I begin learn capabilities of mod_rewrite, and found that task, which I want to resolv, did not resolvs with help of mod_rewrite (or I wrongly thinking, and I want to consult). So, I have Router host, which stand on border between my local network an Internet. Also,