Proxy_pass AND module_perl

Hi,

I want to know how set url of proxy_pass with perl_module. It’s possible
to do it ?

Thank’s for your help,
tsukasa.

Posted at Nginx Forum:

I have try :

http {
perl_set $backend_url ‘sub { return “http://www.google.fr”; }’;
server {
listen 80;
location / {
proxy_pass $backend_url;
}
}
}

But don’t work, an idea ?

Posted at Nginx Forum:

On Sat, Oct 10, 2009 at 5:05 PM, tsukasagenesis [email protected]
wrote:

But don’t work, an idea ?
Try using $r->variable(“backend_url”, “http://www.google.fr”) from you
Perl code. What exactly are you trying to accomplish?

hi,

I try to accomplsh a proxy for many hoster of file and I need to change
url of download. After I use php do do it.
I think perl will be accelerated transfert.

I have try with $r->variable but it’s seen don’t work.

Do you have another idea for do this?

Posted at Nginx Forum:

No one have an idea or exemple ?

Posted at Nginx Forum:

On Sat, Oct 10, 2009 at 11:05:34AM -0400, tsukasagenesis wrote:

I have try :

http {
perl_set $backend_url ‘sub { return “http://www.google.fr”; }’;