Welcome! Log In Create A New Profile

Advanced

Re: Any way to read file contents into a variable?

January 27, 2010 03:02AM
Hi,

arianna wrote:
> want to store urls (locations) in files and issue redirects based on file contents. $request_body looks like it's only available on proxy...
>
The eval module is probably what you want here -

http://github.com/vkholodkov/nginx-eval-module

I would suggest storing the URLs in a memcached server rather than on
file (or do both and check the file only if the memcached version isn't
available).

You might also want to look at the memc module in order to do the
setting of the memcached variable using Nginx (rather than a backend
application).

http://github.com/agentzh/memc-nginx-module

Marcus.

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Any way to read file contents into a variable?

arianna January 20, 2010 06:55PM

Re: Any way to read file contents into a variable?

merlin corey January 22, 2010 05:40PM

Re: Any way to read file contents into a variable?

arianna January 26, 2010 11:55PM

Re: Any way to read file contents into a variable?

Eugaia January 27, 2010 03:02AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 85
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready