You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: guides/source/configuring.md
+20Lines changed: 20 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2069,6 +2069,26 @@ Specifies the default character set for all renders. Defaults to `nil`.
2069
2069
2070
2070
Sets the TLD (top-level domain) length for the application. Defaults to `1`.
2071
2071
2072
+
#### `config.action_dispatch.domain_extractor`
2073
+
2074
+
Configures the domain extraction strategy used by ActionDispatchfor parsing host names into domain and subdomain components. This must be an object that responds to `domain_from(host, tld_length)`and`subdomains_from(host, tld_length)` methods.
2075
+
2076
+
Defaults to `ActionDispatch::Http::URL::DomainExtractor`, which provides the standard domain parsing logic. You can provide a custom extractor to implement specialized domain parsing behavior:
0 commit comments