with_const_scheme.conf 260 B

12345678910
  1. location ~* ^/internal-proxy/(https?)/(.*?)/(.*) {
  2. resolver 127.0.0.1;
  3. set $proxy_protocol $1;
  4. set $proxy_host $2;
  5. set $proxy_path $3;
  6. proxy_pass $proxy_protocol://$proxy_host/$proxy_path ;
  7. proxy_set_header Host $proxy_host;
  8. }