@@ -101,8 +101,8 @@ Take the following ``access_control`` entries as an example:
101
101
For each incoming request, Symfony will decide which ``access_control ``
102
102
to use based on the URI, the client's IP address, the incoming host name,
103
103
and the request method. Remember, the first rule that matches is used, and
104
- if ``ip ``, ``port ``, ``host `` or ``method `` are not specified for an entry, that `` access_control ``
105
- will match any ``ip ``, ``port ``, ``host `` or ``method ``:
104
+ if ``ip ``, ``port ``, ``host `` or ``method `` are not specified for an entry, that
105
+ `` access_control `` will match any ``ip ``, ``port ``, ``host `` or ``method ``:
106
106
107
107
+-----------------+-------------+-------------+-------------+------------+--------------------------------+-------------------------------------------------------------+
108
108
| URI | IP | PORT | HOST | METHOD | ``access_control `` | Why? |
@@ -178,12 +178,6 @@ requests *except* those from a trusted, internal server.
178
178
and users accessing it from a different IP address will continue down
179
179
the ``access_control `` list.
180
180
181
- .. tip ::
182
-
183
- You can add the option ``port `` to use only a specific port.
184
- It could be useful for ``localhost:8080 `` by example.
185
- See :ref: `Forcing a port <forcing-a-port >`
186
-
187
181
Here is an example of how you configure some example ``/internal* `` URL
188
182
pattern so that it is only accessible by requests from the local server itself:
189
183
@@ -333,8 +327,9 @@ For a list of the other functions and variables, see
333
327
Restrict to a port
334
328
------------------
335
329
336
- You can also require a user to access a URL via a specific port; just use the
337
- ``port `` argument in any ``access_control `` entries.
330
+ Add the ``port `` option to any ``access_control `` entries to require users to
331
+ access those URLs via a specific port. This could be useful for example for
332
+ ``localhost:8080 ``.
338
333
339
334
.. configuration-block ::
340
335
0 commit comments