Skip to content

Commit 4d63609

Browse files
authored
Merge pull request rails#45811 from augustocbx/improve_conf-hosts_documentation
Update docs for `conf.hosts` to be more explicit about the main domain
2 parents e28e0f3 + b8501c6 commit 4d63609

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
@@ -755,11 +755,10 @@ The provided regexp will be wrapped with both anchors (`\A` and `\z`) so it
755755
must match the entire hostname. `/product.com/`, for example, once anchored,
756756
would fail to match `www.product.com`.
757757

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

760760
```ruby
761-
# Allow requests from subdomains like `www.product.com` and
762-
# `beta1.product.com`.
761+
# Allow requests from the domain itself `product.com` and subdomains like `www.product.com` and `beta1.product.com`.
763762
Rails.application.config.hosts << ".product.com"
764763
```
765764

0 commit comments

Comments
 (0)