Skip to content

Commit d7c7db8

Browse files
committed
docs: user guide
1 parent fb22d2d commit d7c7db8

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

user_guide_src/source/changelogs/v4.6.0.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,11 @@ Commands
165165
arguments.
166166
- The ``spark filter:check`` command now displays filter classnames.
167167

168+
Routing
169+
=======
170+
171+
- Restrict limit hostname can multiple.
172+
168173
Testing
169174
=======
170175

user_guide_src/source/incoming/routing.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,12 @@ by passing the "hostname" option along with the desired domain to allow it on as
476476
This example would only allow the specified hosts to work if the domain exactly matched **accounts.example.com**.
477477
It would not work under the main site at **example.com**.
478478

479+
.. versionadded:: 4.6.0
480+
481+
Also you can restrict with multiple hostname, e.g:
482+
483+
.. literalinclude:: routing/073.php
484+
479485
Limit to Subdomains
480486
===================
481487

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<?php
2+
3+
$routes->get('from', 'to', ['hostname' => ['s1.example.com', 's2.example.com']]);

0 commit comments

Comments
 (0)