Skip to content

Commit

Permalink
Merge branch '4.4' into 5.0
Browse files Browse the repository at this point in the history
* 4.4:
  Change code example for custom header when using a reverse proxy
  • Loading branch information
javiereguiluz committed Mar 17, 2020
2 parents 3525dd7 + 1d61aaa commit 90ffbee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deployment/proxies.rst
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ In this case, you'll need to set the header ``X-Forwarded-Proto`` with the value
// public/index.php

// ...
$_SERVER['HEADER_X_FORWARDED_PROTO'] = $_SERVER['HEADER_CUSTOM_FORWARDED_PROTO'];
$_SERVER['HTTP_X_FORWARDED_PROTO'] = $_SERVER['HTTP_CUSTOM_FORWARDED_PROTO'];
// ...
$response = $kernel->handle($request);

Expand Down

0 comments on commit 90ffbee

Please sign in to comment.