1 May
2012
1 May
'12
9:56 a.m.
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!