Welcome! Log In Create A New Profile

Advanced

Re: how to get a value from upstream and redirect to another url according to the value?

姚伟斌
April 16, 2011 05:20AM
HI,

You can use the eval moudle(http://www.grid.net.ru/nginx/eval.en.html).

2011/4/16 notedit <notedit@gmail.com>

> hello
>
> i want to write a module , in this module i first get a value from the
> memcache upstream , then i will redirect the url according to the value i
> got?
>
> i know how to get a value from memcache upstream, but i don't not know
> where and when and how i redirect to another url.
>
> thanks for your reading .
>
> --
> *
> --------------------------
>
> Best Wishes,
> from 刘连响
> *
>
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://nginx.org/mailman/listinfo/nginx
>
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

how to get a value from upstream and redirect to another url according to the value?

notedit April 16, 2011 04:00AM

Re: how to get a value from upstream and redirect to another url according to the value?

姚伟斌 April 16, 2011 05:20AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 215
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready