8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d5f268 commit 712c4c6Copy full SHA for 712c4c6
deployment/proxies.rst
@@ -78,3 +78,17 @@ other information.
78
79
.. _`security groups`: http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-security-groups.html
80
.. _`RFC 7239`: http://tools.ietf.org/html/rfc7239
81
+
82
+But what if I have Custom Headers!
83
+-----------------------------------
84
85
+Some reverse proxies (like CloudFront with ``CloudFront-Forwarded-Proto``) may force you to use a custom header.
86
+For instance you have ``Custom-Forwarded-Proto`` instead of ``X-Forwarded-Proto``.
87
88
+In this case, you'll need to set the header ``X-Forwarded-Proto`` with the value of
89
+``Custom-Forwarded-Proto`` early enough in your application::
90
91
+ // web/app.php
92
93
+ // ...
94
+ $_SERVER['HEADER_X_FORWARDED_PROTO'] = $_SERVER['HEADER_CUSTOM_FORWARDED_PROTO'];
0 commit comments