﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	uname	nginx_version
2291	Regex plus variable in Nginx `proxy_redirect`	brsolomon-deloitte@…		"It is not currently documented or apparent if it is possible to use a regex that also includes Nginx variables in `proxy_redirect`.

For example, none of these work:


{{{
proxy_redirect ~*https?://\\$proxy_host/(.*)$ /app1/$1
proxy_redirect ~*https?://\$proxy_host/(.*)$ /app1/$1
proxy_redirect ~*https?://$proxy_host/(.*)$ /app1/$1
}}}


This is described here in further detail: https://stackoverflow.com/q/70205048/7954504

The use-case for this is the scenario where one only wants to change Location header when the redirect location is for the internal app, not for an external redirect."	defect	accepted	minor		documentation	1.19.x				Linux ingress-nginx-controller-54bfb9bb-qztrf 5.4.149-73.259.amzn2.x86_64 #1 SMP Mon Sep 27 12:48:12 UTC 2021 x86_64 Linux	"nginx version: nginx/1.19.9
built by gcc 10.3.1 20210424 (Alpine 10.3.1_git20210424) 
built with OpenSSL 1.1.1l  24 Aug 2021
TLS SNI support enabled"
