File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -109,6 +109,11 @@ so you can also pass your own value (e.g. ``0b00110``).
109
109
Symfony versions you needed to use the ``Request::setTrustedProxies() ``
110
110
method in the ``public/index.php `` file.
111
111
112
+ .. caution ::
113
+
114
+ The "trusted proxies" feature does not work as expected when using the
115
+ `nginx realip module `_. Disable that module when serving Symfony applications.
116
+
112
117
But what if the IP of my Reverse Proxy Changes Constantly!
113
118
----------------------------------------------------------
114
119
@@ -184,3 +189,4 @@ handling the request::
184
189
.. _`CloudFront` : https://en.wikipedia.org/wiki/Amazon_CloudFront
185
190
.. _`CloudFront IP ranges` : https://ip-ranges.amazonaws.com/ip-ranges.json
186
191
.. _`HTTP Host header attacks` : https://www.skeletonscribe.net/2013/05/practical-http-host-header-attacks.html
192
+ .. _`nginx realip module` : http://nginx.org/en/docs/http/ngx_http_realip_module.html
You can’t perform that action at this time.
0 commit comments