---
name: azion-configure-http-and-https-ports
description: >-
  Choose the HTTP and HTTPS ports an application answers on, and the port Azion connects to on its origin, from Azion Console.
---

# Configure HTTP and HTTPS ports

> Platform versions: this page applies to API v3.x only, not to API v6.x and API v4.x.
> Equivalent page for API v4.x: [Configure HTTP and HTTPS ports](/en/documentation/guides/application-development/getting-started/configure-ports.md)
> Release stage: Deprecated.

You can choose the ports an [application](/en/documentation/platform/applications/v3/) answers on for HTTP and HTTPS, and the port Azion connects to on your origin, from Azion Console. For the TLS version and the cipher suite of the HTTPS ports, refer to [Set the TLS cipher suite](/en/documentation/guides/application-security/tls-and-certificates/ciphers/v3/).

Two ports take part in every request. The delivery port is the port your users connect to, and the application's **Main Settings** set it. The origin port is the port Azion connects to on your origin, and the application's origin sets it. Each one has a default, `80` for HTTP and `443` for HTTPS, and you can change either one without the other.

This table shows the combinations, with an example request and the setting each one changes:

| Combination                                                | Origin URL                        | Delivery URL                   | What to change                                                           |
| ---------------------------------------------------------- | --------------------------------- | ------------------------------ | ------------------------------------------------------------------------ |
| Default origin port, default delivery port                 | `https://origin.example.com:443`  | `https://www.example.com:443`  | Nothing                                                                  |
| Default origin port, other protocol than the delivery port | `http://origin.example.com:80`    | `https://www.example.com:443`  | The protocol policy of the origin                                        |
| Default origin port, custom delivery port                  | `http://origin.example.com:80`    | `http://www.example.com:8080`  | The ports in **Main Settings**                                           |
| Custom origin port, default delivery port                  | `https://origin.example.com:9443` | `https://www.example.com:443`  | The port in the address of the origin                                    |
| Custom origin port, custom delivery port                   | `https://origin.example.com:8443` | `https://www.example.com:9443` | The ports in **Main Settings** and the port in the address of the origin |

---

## Prerequisites

- An application whose origin you want to reach.
- Access to Azion Console. For more information, refer to [How to access Azion Console](/en/documentation/guides/platform/account-and-billing/how-to-access-azion-console/).

---

## Set the delivery ports and the origin port

Both halves sit on the same application, in two tabs. To set them in Azion Console:

1. **Open the application**

   Access [Azion Console](https://console.azion.com/) > **Applications** > **your application**.

2. **Open the origin**

   In the **Origins** tab, select the default origin or add one.

3. **Choose the protocol policy**

   Keep **Preserve HTTP/HTTPS protocol** selected to reach the origin on the protocol of the request. Under **Protocol Policy**, **Enforce HTTP** or **Enforce HTTPS** sends every request on that protocol instead, whichever one the user asked for.

4. **Enter the origin address and its port**

   In **Address**, enter the hostname of your origin. For a port other than the default of the protocol, add the `host:port` notation. For example: `yourorigin.com:8443`.

5. **Save the origin**

   Select **Save**.

6. **Choose the delivery ports**

   In the **Main Settings** tab, select the HTTP and HTTPS ports the application answers on. An application delivered over HTTP only offers port `80`. Delivering over **HTTP & HTTPS** adds port `443` and makes the custom ports selectable beside them.

7. **Save the application**

   Select **Save**.

The two settings are independent. The port in **Address** is the one Azion connects to at your origin. The ports in **Main Settings** are the ones users connect to. For every field of both tabs, refer to [Main Settings](/en/documentation/platform/applications/main-settings-v3/) and [Origins](/en/documentation/platform/connectors/origins/).

---

## Next steps

- [Main Settings](/en/documentation/platform/applications/main-settings-v3.md#ports): Look up every delivery port the application can answer on.
- [Origins](/en/documentation/platform/connectors/origins.md): Set the address, the origin port, and the protocol policy of an origin.
- [Set the TLS cipher suite](/en/documentation/guides/application-security/tls-and-certificates/ciphers/v3.md): Choose the minimum TLS version and the cipher suite of the HTTPS ports.
