# Back-to-origin Settings

Set the upstream protocol, enable WebSocket, and set origin host header.

<div align="left"><figure><img src="/files/Ve4FCw1aLSlPI3PWVDfO" alt="" width="383"><figcaption></figcaption></figure></div>

* Upstream Protocol
  * Set Upstream protocol to HTTP: Requests are redirected to the origin server over HTTP with the port you defined.
  * Set Upstream protocol to HTTPS: Requests are redirected to the origin server over HTTPS with the port you defined.
* WebSocket\
  A TCP-based protocol that is useful when you need long-lived bidirectional connections between clients and servers. A persistent connection is often a requirement with real-time applications. The scenarios in which you might use WebSocket include social chat platforms, online collaboration workspaces, multi-player gaming, and services that provide real-time data feeds like financial trading platforms. Data over a WebSocket connection can flow in both directions for full-duplex communication.
* Back to Origin Host\
  Different back-to-origin HOST header can be configured to access one of targeted origins for the same accelerated domain name.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.console.zenlayer.com/welcome/content-delivery-network/domain-management/cdn-settings/back-to-origin-settings.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
