From 1f74bab3e8d30c191878dab231f144cd696d977a Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Mon, 24 Jul 2017 17:26:28 +0200 Subject: [PATCH] Removed tabs in 2.7 docs --- request/load_balancer_reverse_proxy.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/request/load_balancer_reverse_proxy.rst b/request/load_balancer_reverse_proxy.rst index ca41ff35bdf..c0d6957c8c4 100644 --- a/request/load_balancer_reverse_proxy.rst +++ b/request/load_balancer_reverse_proxy.rst @@ -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. pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy