Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

if and proxy_pass_header

$
0
0
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!

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>