proxy_pass AND module_perl
Srebrenko Sehic
ssehic at gmail.com
Sun Oct 11 11:58:23 MSD 2009
On Sat, Oct 10, 2009 at 5:05 PM, tsukasagenesis <nginx-forum at nginx.us> wrote:
> 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 ?
Try using $r->variable("backend_url", "http://www.google.fr") from you
Perl code. What exactly are you trying to accomplish?
More information about the nginx
mailing list