CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2020/02/25 08:18:41
Modified files:
usr.sbin/httpd : httpd.conf.5 server_http.c
Log message:
httpd: allow $REQUEST_SCHEME in redirect targets, ok jung@ florian@
Sometimes you want to redirect a request to another site but maintaining
the same type of connection (http or https) as the original request.
Allow a $REQUEST_SCHEME variable to be used in redirect locations to
allow this, e.g.
location "/cgi-bin/foobar*" { block return 302
"$REQUEST_SCHEME://foobar.example.org$REQUEST_URI" }