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