Skip to content

Commit 8531ef7

Browse files
committed
Minor reword
1 parent 8dd19fa commit 8531ef7

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

security/access_control.rst

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ Take the following ``access_control`` entries as an example:
101101
For each incoming request, Symfony will decide which ``access_control``
102102
to use based on the URI, the client's IP address, the incoming host name,
103103
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``:
106106

107107
+-----------------+-------------+-------------+-------------+------------+--------------------------------+-------------------------------------------------------------+
108108
| URI | IP | PORT | HOST | METHOD | ``access_control`` | Why? |
@@ -178,12 +178,6 @@ requests *except* those from a trusted, internal server.
178178
and users accessing it from a different IP address will continue down
179179
the ``access_control`` list.
180180

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-
187181
Here is an example of how you configure some example ``/internal*`` URL
188182
pattern so that it is only accessible by requests from the local server itself:
189183

@@ -333,8 +327,9 @@ For a list of the other functions and variables, see
333327
Restrict to a port
334328
------------------
335329

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``.
338333

339334
.. configuration-block::
340335

0 commit comments

Comments
 (0)