RES: Header Troubles
> -Mensagem original- > De: Brad W. Galiette [mailto:[EMAIL PROTECTED]] > Enviada em: domingo, 30 de junho de 2002 17:59 > Para: [EMAIL PROTECTED] > Assunto: Header Troubles > > > I am current running mod_perl with PerlSendHeader On; in this manner, the Perl applications that I am running > can post the many headers that are required for proper operation, such as "Set-Cookie", "Location", etc. You can do it better with PerlSendHeader OFF. $r->header_out(Location => '/path') > > However, while my scripts are functioning properly, the Apache error log cites a number of locations as being > "bad headers" when I know for certain that they are HTML, and not header data. I have confirmed that all header > blocks are followed "\r\n\r\n" but still no avail. Any ideas on why Apache is confusing something such as "> > " to be a header? :-P Are you running Apache on Win32? Otherwise, print "\n\n" instead. > > Regards, > Brad Galiette Ricardo Basto
RE: Apache::LightBackhand
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 > >
Re: Apache::LightBackhand
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 >
Apache::LightBackhand
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 LightBackhand.pm Description: Perl program