Welcome! Log In Create A New Profile

Advanced

Re: using a variable in client_body_temp_path

Maxim Dounin
August 06, 2009 04:24PM
Hello!

On Tue, Aug 04, 2009 at 05:43:13PM +0900, Daniel wrote:

> Hi
>
> I'm trying to use a variable to set client_body_temp_path but doesn't work.
> the conf I have:
>
> location ~ "\/dev(.*)\/" {
> root /var/mogdata/;
> dav_methods put delete mkcol copy move;
> dav_access user:rw group:rw all:r;
> autoindex on;
> autoindex_exact_size off;
> set $tmppath dev$1/tmp;
>
> client_body_temp_path /var/mogdata/$tmppath;
> create_full_put_path on;
> }
>
> but when the file is uploaded the temporally file is in
> "/var/mogdata/$tmppath" with should be "/var/mogdata/dev2/tmp".
> Is there anyway to do it?.

Directive client_body_temp_path does not support variables. Use
separate explicitly specified locations instead.

Note that only some directives support variables, and this support
explicitly documented. I.e. if you don't see something like "you
may use variables" in official documentation of a directive - it
does not support variables.

Maxim Dounin
Subject Author Posted

using a variable in client_body_temp_path

Daniel August 04, 2009 04:43AM

Re: using a variable in client_body_temp_path

Maxim Dounin August 06, 2009 04:24PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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