Welcome! Log In Create A New Profile

Advanced

Setting location header

Joe Van Dyk
April 25, 2009 11:59PM
I have a URL stored in memcached in the key "some-key". I have the
following location defined:

location /redirect-from-memcached {
set $memcached_key some-key;
memcached_pass localhost:11211;
add_header Location What goes here?
return 302;
}


How can I, in nginx 0.6, access the value of "some-key" in memcached
and use it in the Location header?

Thanks,
Joe
Subject Author Posted

Setting location header

Joe Van Dyk April 25, 2009 11:59PM

Re: Setting location header

Joe Van Dyk April 28, 2009 03:41PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 205
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