Welcome! Log In Create A New Profile

Advanced

$request_body_file

Sergey Egorov
May 22, 2015 09:14AM
Всем Привет!

1.8.0 - проблемы с передачей $request_body_file в upstream.

Нашел вот это -
http://mailman.nginx.org/pipermail/nginx-ru/2007-December/015531.html

Пробовал вот так
```
proxy_set_header X-FILE "$request_body_file";
proxy_pass
http://127.0.0.1:8810/v1/upload?file=$request_body_file;
```

Пустая переменная при POST - X-FILE нет в заголовках, и пусто после file=

Если вот так
```
proxy_set_header X-FILE "$request_body_file";
proxy_pass http://127.0.0.1:8810/v1/upload;
```

То в заголовках есть. Но хочется в запросе.

Баг или так и задуманно?

Сергей
_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

$request_body_file

Sergey Egorov May 22, 2015 09:14AM

Re: $request_body_file

Maxim Dounin May 22, 2015 09:46AM

Re: $request_body_file

Anatoly Mikhaylov May 26, 2015 06:06PM

Re: $request_body_file

Валентин Бартенев May 27, 2015 06:46AM

Re: $request_body_file

Maxim Dounin May 27, 2015 09:08AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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