ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> modperl
modperl
Re: using subrequest to different server
by Aaron Trevena other posts by this author
Dec 7 2006 7:17AM messages near this date
using subrequest to different server | Apache2::Upload and End of file found error Part 2
On 06/12/06, Marc Lambrichs <marc.lambrichs@[...].nl>  wrote:
>  I'm trying to change a subrequest to do a request to a different server
>  than the originating one. I'm not sure if this is possible. Anyway, I've
>  skipped the internal_redirect because - am I correct? - this is bound to
>  the originating server.
> 
>  My second thought was using lookup_uri(), but I'm not sure this can be done.
> 
>  Ofcourse, I'm trying to avoid a normal redirect either through apache
>  config, or mod_rewrite or defining a separate handler. Any ideas?

What is the context of the redirect?

Are you just fetching something and providing it as is - i.e.
proxying, if so then mod_proxy would be your friend (ProxyPass and
ProxyPassReverse are very very handy)

Otherwise, presumbably you're executing some code to do something
and/or decided if you need to proxy the content, in which case it's a
bit trickier and you may need to use LWP or something to fetch the
data yourself.

I don't know of a mod_perl way to redirect to another server, but I'd
be interested to know if it was possible.

A.

-- 
http://www.aarontrevena.co.uk
LAMP System Integration, Development and Hosting
Thread:
Marc Lambrichs
Aaron Trevena

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved