Hi We have an issue that is not actually a dancer problem but hoping there is a config that dancer has. Our systems sit behind a load balancer which off-loads SSL, so dancer only ever sees http connections. It mostly does not matter as the load balancer handles the reverse. However using the built in redirect is the issue as dancer only knows that the connection (inside the network) is http. It is not aware that it actually is https. So the redirect header of course sends out an http link. Is there any way to configure this so it is made aware of the fact that it needs to be https? Z
On Tue, 2016-03-01 at 15:22 +0000, Zahir Lalani wrote:
Our systems sit behind a load balancer which off-loads SSL, so dancer only ever sees http connections. It mostly does not matter as the load balancer handles the reverse. However using the built in redirect is the issue as dancer only knows that the connection (inside the network) is http. It is not aware that it actually is https. So the redirect header of course sends out an http link. Is there any way to configure this so it is made aware of the fact that it needs to be https?
Have you tried setting the behind_proxy config parameter to true?
-----Original Message----- From: dancer-users [mailto:dancer-users-bounces@dancer.pm] On Behalf Of Andrew Beverley Sent: 01 March 2016 15:45 To: Perl Dancer users mailing list <dancer-users@dancer.pm> Subject: Re: [dancer-users] redirects with SSL
On Tue, 2016-03-01 at 15:22 +0000, Zahir Lalani wrote:
Our systems sit behind a load balancer which off-loads SSL, so dancer only ever sees http connections. It mostly does not matter as the load balancer handles the reverse. However using the built in redirect is the issue as dancer only knows that the connection (inside the network) is http. It is not aware that it actually is https. So the redirect header of course sends out an http link. Is there any way to configure this so it is made aware of the fact that it needs to be https?
Have you tried setting the behind_proxy config parameter to true?
Hi Andrew No I was not aware of that. Looking at that now Thx for the tip Z
participants (2)
-
Andrew Beverley -
Zahir Lalani