Hi,
I just discovered that %ENV is different (has fewer keys) when I run the application via "plackup .....
app.pl" than when I run it as "./
app.pl".
My problem is: I want the environment variable HTTP_X_FORWARDED_PROTOCOL defined (= 'https"). I have added the line
$ENV{HTTP_X_FORWARDED_PROTOCOL} = 'https';
which works (the key is found in %ENV) when I run "./
app.pl" but does not work (no such key) when I run the application as "plackup .....
app.pl"
Where do I define the environment variable so that it is set no matter how the application is run
Thank you!