From de2cab457e4bc7a409210a86b3a9e2465c41d290 Mon Sep 17 00:00:00 2001 From: Andrew Beverley Date: Sun, 5 Oct 2014 14:46:16 +0100 Subject: [PATCH] Minor doc update to advise on proxy protocol forwarding with Apache It appears that Apache does not forward protocol information when proxying. This doc update details this fact and provides a workaround. --- lib/Dancer2/Config.pod | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/Dancer2/Config.pod b/lib/Dancer2/Config.pod index 27998c51b..56ed3ee18 100644 --- a/lib/Dancer2/Config.pod +++ b/lib/Dancer2/Config.pod @@ -132,6 +132,11 @@ If set to true, Dancer2 will look to C and C when constructing URLs (for example, when using C). This is useful if your application is behind a proxy. +Note that if you are using Apache and want to retrieve the protocol, +then you will need to manually specify it in your Apache config: + + RequestHeader set X_FORWARDED_PROTO "https" + =head2 Content type / character set =head3 content_type (string)