Welcome! Log In Create A New Profile

Advanced

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

merlin corey
January 22, 2010 05:40PM
On Wed, Jan 20, 2010 at 3:55 PM, arianna <nginx-forum@nginx.us> 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...
>
> Posted at Nginx Forum: http://forum.nginx.org/read.php?2,43668,43668#msg-43668
>
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://nginx.org/mailman/listinfo/nginx
>

There are third party modules which may read a value of a location
(which could refer to files) into a variable.

Why do you really need this though? Would seem easier to setup a
backend application of some kind which sends X-Accel-Redirect or the
Location: header as needed.

-- Merlin

_______________________________________________
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: 201
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