Skip to content

Commit 027ef99

Browse files
committed
Update docs for conf.hosts to be more explicit about the main domain
1 parent 63d4f99 commit 027ef99

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

guides/source/configuring.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -611,11 +611,10 @@ The provided regexp will be wrapped with both anchors (`\A` and `\z`) so it
611611
must match the entire hostname. `/product.com/`, for example, once anchored,
612612
would fail to match `www.product.com`.
613613

614-
A special case is supported that allows you to permit all sub-domains:
614+
A special case is supported that allows you to permit the domain and all sub-domains:
615615

616616
```ruby
617-
# Allow requests from subdomains like `www.product.com` and
618-
# `beta1.product.com`.
617+
# Allow requests the domain itself `product.com` and from subdomains like `www.product.com` and `beta1.product.com`.
619618
Rails.application.config.hosts << ".product.com"
620619
```
621620

0 commit comments

Comments
 (0)