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:
http://forum.nginx.org/read.php?2,12699,12699#msg-12699

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:
http://forum.nginx.org/read.php?2,12699,12715#msg-12715

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:
http://forum.nginx.org/read.php?2,12699,12910#msg-12910

No one have an idea or exemple ?

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,12699,14267#msg-14267

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”; }’;

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs