Welcome! Log In Create A New Profile

Advanced

Nginx rewriting 303 redirect to 302 redirect with proxy_http_version set to 1.1

December 27, 2022 01:27PM
Hey!

I am currently using nginx 1.23(also tested with nginx 1.22). I am using nginx as a reverse proxy for an application. It responds to a PUT request with 303 status code(303 See Other). Nginx is rewriting this to 302. This causes problems since 302 and 303 have completely different semantics.

I found this old thread https://forum.nginx.org/read.php?2,278217,278223#msg-278223 where some one had the same problem and it was fixed by setting proxy_http_version to 1.1 but we already have this in the config and it's still broken for us.

I have looked at the documentation and tried searching for this but I can't find any thing on what controls this behavior or how I can fix it. Please let me know if any one here knows how to fix it? Thanks
Subject Author Posted

Nginx rewriting 303 redirect to 302 redirect with proxy_http_version set to 1.1

ishanjain December 27, 2022 01:27PM

Re: Nginx rewriting 303 redirect to 302 redirect with proxy_http_version set to 1.1

ishanjain December 28, 2022 11:23AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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