Can a CGI be fed the response from a reverse proxy, modify it , and spit out the modified response?
I tried this without success:
reverse_proxy {host}:443 {
header_up Host {upstream_hostport}
handle_response {
handle /some/path/i/want/to/override {
cgi * /scripts/hello.py {
pass_all_env
}
}
handle {
copy_response
}
}
}
Can a CGI be fed the response from a reverse proxy, modify it , and spit out the modified response?
I tried this without success: