[Dancer-users] %ENV different when run via plackup
Gurunandan Bhat
gbhat at pobox.com
Tue May 1 11:56:19 CEST 2012
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!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.backup-manager.org/pipermail/dancer-users/attachments/20120501/295e22c4/attachment.htm>
More information about the Dancer-users
mailing list