From de2cab457e4bc7a409210a86b3a9e2465c41d290 Mon Sep 17 00:00:00 2001 From: Andrew Beverley Date: Sun, 5 Oct 2014 14:46:16 +0100 Subject: [PATCH 1/2] 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) From 9ff821edd7711c01b5545562a63c17a3f5c8534e Mon Sep 17 00:00:00 2001 From: Sawyer X Date: Wed, 8 Oct 2014 21:16:21 +0200 Subject: [PATCH 2/2] reflect change --- Changes | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Changes b/Changes index ca4be8304..4284628ac 100644 --- a/Changes +++ b/Changes @@ -12,13 +12,15 @@ * GH #649, #670: Document core logger. (simbabque) * GH #689: Git guide markdown fixes. (Paul Cochrane) * GH #690, #691, #694, #696, #698, #699, #700, #702, #703, - #704, #705, #706, #707, #708, #710: Doc cleanups. + #704, #705, #706, #707, #708, #710: Doc cleanups. (Paul Cochrane) * GH #688: Improve testing documentation. (Paul Chochrane) * GH #692: Document serving static files using Plack::Middleware::Static. (Dávid Kovács @DavsX) * GH #695: Correct Dancer2::Logger::Capture, add test example. (Dávid Kovács @DavsX) + * GH #716: Correct document on proxy procotol forwarding + in Apache. (Andy Beverley) 0.150000 2014-08-17 01:35:16CEST+0200 Europe/Amsterdam