Thanks! I'm gonna try this approach.
On Thu, Jun 29, 2023 at 7:00 PM Maxim Dounin <mdou...@mdounin.ru> wrote: > > Hello! > > On Thu, Jun 29, 2023 at 04:29:39PM -0300, Fabiano Furtado Pessoa Coelho wrote: ... > > The "proxy_intercept_errors" handling does not copy any response > headers from the original response (the only exception is > WWW-Authenticate for 403 responses). > > If you want nginx to copy some headers, consider doing it yourself > with the $upstream_http_* variables and the add_header directive. > Something like this should work: > > location /30x.html { > add_header Location $upstream_http_location; > ... > } > > Note though that you'll have to manually rewrite location if > needed (as proxy_redirect handling won't be used). _______________________________________________ nginx mailing list nginx@nginx.org https://mailman.nginx.org/mailman/listinfo/nginx