Skip to content

Commit

Permalink
Minor doc update to advise on proxy protocol forwarding with Apache
Browse files Browse the repository at this point in the history
It appears that Apache does not forward protocol information when
proxying. This doc update details this fact and provides a workaround.
  • Loading branch information
Andrew Beverley authored and xsawyerx committed Oct 8, 2014
1 parent 97e252a commit de2cab4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/Dancer2/Config.pod
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,11 @@ If set to true, Dancer2 will look to C<X-Forwarded-Protocol> and
C<X-Forwarded-host> when constructing URLs (for example, when using
C<redirect>). 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)
Expand Down

0 comments on commit de2cab4

Please sign in to comment.