# observe\_dispatch\_host/2

Source: https://zotonic.com/docs/1817/observe_dispatch_host-2

URI: https://zotonic.com/id/1817

Language: en



Try to find the site for the request Called when the request Host doesn’t match any active site.

Type:

[first](/id/doc_developerguide_notifications#notification-first)

Return:

`{ok, #dispatch_redirect{}}` or `undefined`

`#dispatch_host{}` properties:

- host: `binary`
- path: `binary`
- method: `binary`
- protocol: `union`

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/1817?language=en


## API access

- [API help](<https://zotonic.com/api-help>)
- [OpenAPI specification](<https://zotonic.com/openapi.json>)
- [This resource as JSON](<https://zotonic.com/api/agent/resource/1817?language=en>)
