Skip to content

Commit 7612979

Browse files
committed
minor #13360 Change code example for custom header when using a reverse proxy (akondas)
This PR was submitted for the 5.0 branch but it was merged into the 3.4 branch instead (closes #13360). Discussion ---------- Change code example for custom header when using a reverse proxy I know this is a very subtle change, but it took me some time to catch the small difference Commits ------- 2089a48 Change code example for custom header when using a reverse proxy
2 parents da7b840 + 2089a48 commit 7612979

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deployment/proxies.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ In this case, you'll need to set the header ``X-Forwarded-Proto`` with the value
9595
// web/app.php
9696

9797
// ...
98-
$_SERVER['HEADER_X_FORWARDED_PROTO'] = $_SERVER['HEADER_CUSTOM_FORWARDED_PROTO'];
98+
$_SERVER['HTTP_X_FORWARDED_PROTO'] = $_SERVER['HTTP_CUSTOM_FORWARDED_PROTO'];
9999
// ...
100100
$response = $kernel->handle($request);
101101

0 commit comments

Comments
 (0)