Re: mod_accel reverse proxying?

2001-12-28 Thread Philip Mak

On Fri, 28 Dec 2001, Igor Sysoev wrote:

 Yes, it doesn't. It's difficult to figure proxied URL parts in mod_rewrite
 so I have to make explicit directive to specify reverse rewrite.
 I will make it today or tomorrow.

Great!

 I think it should have reverse syntax:

 AccelReverse  http://127.0.0.1:8001/   /

 Or not ? Of course it complicates porting from mod_proxy to mod_accel
 but I think it's clearer then ProxyPassReverse syntax.

I don't think either order is more clearer than the other, but since
ProxyPassReverse has it like / http://127.0.0.1:8001/, my personal opinion
is that AccelPassReverse should have it in the same order too to avoid
confusion.




Re: mod_accel reverse proxying?

2001-12-28 Thread Jeremy Howard

Philip Mak wrote:
 On Fri, 28 Dec 2001, Igor Sysoev wrote:
  I think it should have reverse syntax:
 
  AccelReverse  http://127.0.0.1:8001/   /
 
  Or not ? Of course it complicates porting from mod_proxy to mod_accel
  but I think it's clearer then ProxyPassReverse syntax.

 I don't think either order is more clearer than the other, but since
 ProxyPassReverse has it like / http://127.0.0.1:8001/, my personal opinion
 is that AccelPassReverse should have it in the same order too to avoid
 confusion.

On the other hand, I find mod_proxy's syntax weird and support Igor's
proposal. Still, either one would be very handy!





Re: mod_accel reverse proxying?

2001-12-28 Thread Igor Sysoev

On Sat, 29 Dec 2001, Jeremy Howard wrote:

 Philip Mak wrote:
  On Fri, 28 Dec 2001, Igor Sysoev wrote:
   I think it should have reverse syntax:
  
   AccelReverse  http://127.0.0.1:8001/   /
  
   Or not ? Of course it complicates porting from mod_proxy to mod_accel
   but I think it's clearer then ProxyPassReverse syntax.
 
  I don't think either order is more clearer than the other, but since
  ProxyPassReverse has it like / http://127.0.0.1:8001/, my personal opinion
  is that AccelPassReverse should have it in the same order too to avoid
  confusion.
 
 On the other hand, I find mod_proxy's syntax weird and support Igor's
 proposal. Still, either one would be very handy!

RewriteRule   ^/$ http://backend/$1
AccelReverse   /  http://backend/

Today there will be mod_accel-1.0.10 and mod_deflate-1.0.10 tarballs.
I'll post message.

Igor Sysoev




mod_accel reverse proxying?

2001-12-27 Thread Philip Mak

Does mod_accel have a reverse proxying directive (similar to the
ProxyPassReverse directive in mod_proxy) in order to make redirects work?

I believe the AccelPass directive automatically handles reverse
proxying, but what if I used RewriteRule instead:

RewriteRule ^(.*)\.asp$ http://127.0.0.1:8001/$1.asp [L,P]

That does not setup reverse proxying for me...




Re: mod_accel reverse proxying?

2001-12-27 Thread Igor Sysoev

On Thu, 27 Dec 2001, Philip Mak wrote:

 Does mod_accel have a reverse proxying directive (similar to the
 ProxyPassReverse directive in mod_proxy) in order to make redirects work?

Yes, AccelPass automatically handles reverse proxying in
Location and Refresh headers.

 I believe the AccelPass directive automatically handles reverse
 proxying, but what if I used RewriteRule instead:
 
 RewriteRule ^(.*)\.asp$ http://127.0.0.1:8001/$1.asp [L,P]
 
 That does not setup reverse proxying for me...

Yes, it doesn't. It's difficult to figure proxied URL parts in mod_rewrite
so I have to make explicit directive to specify reverse rewrite.
I will make it today or tomorrow.
I think it should have reverse syntax:

AccelReverse  http://127.0.0.1:8001/   /

Or not ? Of course it complicates porting from mod_proxy to mod_accel
but I think it's clearer then ProxyPassReverse syntax.

Igor Sysoev