Re: Apache::LightBackhand

2002-06-20 Thread Perrin Harkins

Ricardo Basto wrote

I'd like some feedback on this module I just wrote. It's something like a
reverse proxy, but intended as a gateway from the fully-functional
apache/mod_perl to another webserver, probably behind a firewall in the
corporate network.
  


That sounds just like mod_proxy's reverse mode or several of the 
mod_perl proxy modules on CPAN.  Have you looked at those?  Also, the 
name is confusing because it doesn't seem much like mod_backhand.

Don't get me wrong, the code looks fine and it's nice of you to make it 
public.  I wouldn't suggest putting it on CPAN though unless it does 
something that the others don't do.

- Perrin




Re: Apache::LightBackhand

2002-06-20 Thread Ricardo Basto

Well, the attachment disappeared, so I'd better post a link:
http://www.basto.com/LightBackhand.pm


 Hi list,
 
 I'd like some feedback on this module I just wrote. It's something like
 a reverse proxy, but intended as a gateway from the fully-functional
 apache/mod_perl to another webserver, probably behind a firewall in the
 corporate network. The configuration is very simple. The implementation
 relies on LWP to recreate the request as identical as possible, and then
 returning the response, as identical as possible too, back to the
 client. I'm using it as a way of publishing some ASP applications to the
 internet, and still the only server visible to the net is a linux box. I
 hope you find it useful. Any comments are welcome, as this is my first
 (public) Apache:: module.
 
 
 Regards
 Ricardo C A de Basto
 




RE: Apache::LightBackhand

2002-06-20 Thread Ricardo Basto

Yes, I actually did look at CPAN and the only module that did something
similar was ReverseProxy, but the primary focus of that module is to act
like a transparent proxy, in a way that na entire host will show up as
another (remote, probably Internet) site.
For example, the other modules try to interpret the response code of the
request before forwarding it back. My module tries the opposite: the
only case it will fake a response code different from what it got is
when the LWP request times out. Every 404, 500, 302 etc. will just be
passed back to the client. This I think is something original to my
module.
And I'm neither sure if that is the best name for my module, but I think
it's target is much more people googling for backhand than for
proxy.

And thanks for looking at it!

Ricardo


 Ricardo Basto wrote
 
 I'd like some feedback on this module I just wrote. It's 
 something like 
 a reverse proxy, but intended as a gateway from the fully-functional 
 apache/mod_perl to another webserver, probably behind a 
 firewall in the 
 corporate network.
   
 
 
 That sounds just like mod_proxy's reverse mode or several of the 
 mod_perl proxy modules on CPAN.  Have you looked at those?  Also, the 
 name is confusing because it doesn't seem much like mod_backhand.
 
 Don't get me wrong, the code looks fine and it's nice of you 
 to make it 
 public.  I wouldn't suggest putting it on CPAN though unless it does 
 something that the others don't do.
 
 - Perrin