Skip to content

Removed tabs in 2.7 docs #8219

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 24, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Removed tabs in 2.7 docs
  • Loading branch information
javiereguiluz committed Jul 24, 2017
commit 1f74bab3e8d30c191878dab231f144cd696d977a
10 changes: 5 additions & 5 deletions request/load_balancer_reverse_proxy.rst
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,13 @@ In this case, you'll need to - *very carefully* - trust *all* proxies.

.. code-block:: diff

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

// ...
$request = Request::createFromGlobals();
+ Request::setTrustedProxies(array('127.0.0.1', $request->server->get('REMOTE_ADDR')));
// ...
$request = Request::createFromGlobals();
+ Request::setTrustedProxies(array('127.0.0.1', $request->server->get('REMOTE_ADDR')));

// ...
// ...

#. Ensure that the trusted_proxies setting in your ``app/config/config.yml``
is not set or it will overwrite the ``setTrustedProxies()`` call above.
Expand Down