Skip to content

Commit

Permalink
fix code block
Browse files Browse the repository at this point in the history
Indent the complete block with three more spaces so that it is aligned
properly inside the surrounding list item. Move placeholder comment
to the right place.
  • Loading branch information
xabbuh committed Aug 10, 2014
1 parent 6943da8 commit bbc2f11
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cookbook/request/load_balancer_reverse_proxy.rst
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,13 @@ In this case, you'll need to - *very carefully* - trust *all* proxies.
proxies, configure Symfony to *always* trust incoming request. This is
done inside of your front controller::

// web/app.php
// ...
// web/app.php

Request::setTrustedProxies(array($request->server->get('REMOTE_ADDR')));
// ...
Request::setTrustedProxies(array($request->server->get('REMOTE_ADDR')));

$response = $kernel->handle($request);
// ...
$response = $kernel->handle($request);
// ...

That's it! It's critical that you prevent traffic from all non-trusted sources.
If you allow outside traffic, they could "spoof" their true IP address and
Expand Down

0 comments on commit bbc2f11

Please sign in to comment.