Any way to read file contents into a variable?

merlin corey merlincorey at dc949.org
Sat Jan 23 01:36:57 MSK 2010


On Wed, Jan 20, 2010 at 3:55 PM, arianna <nginx-forum at 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 at 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



More information about the nginx mailing list