Welcome! Log In Create A New Profile

Advanced

if and proxy_pass_header

Posted by noskov 
if and proxy_pass_header
January 31, 2014 08:50AM
According to cookie variable I need to make proxy_pass_headers, but proxy_pass_header directive is not allowed in "if". How to resolve this problem?

I tried to do this with help of predefined locations. But for colling predefined location I didn't found any opportunity except error_page 302 = @location; return 302. In this case GET requests are working fine, but on POST request I received error "upstream prematurely closed connection while reading response header from upstream". On error code 404 all working normal, but this is bad practice, I think.

Thank You for any suggestions!
Sorry, only registered users may post in this forum.

Click here to login

Online Users

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