Hey guys, I’m trying to write a couple of perl modules for my nginx
server that is acting as an HTTP Proxy.
What I’d like to do is use Perl to perform some (quick) checks and
then return an error code, but I’m noticing that if I execute any perl
code before the config block that engages the http_proxy, the perl
error code is ignored. If I execute the perl block after the
http_proxy, then the connection isn’t proxy passed at all. Is this a
config issue on my part or is this normal behavior with regards to
perl. If it’s normal behavior, how can I use perl modules to perform
checks with http_proxy features enabled?