Configure HTTP and HTTPS ports
Choose the HTTP and HTTPS ports an application answers on, and the port Azion connects to on its origin, from Azion Console.
You can choose the ports an application 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.
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.
Set the delivery ports and the origin port
Both halves sit on the same application, in two tabs. To set them in Azion Console:
Access Azion Console > Applications > your application.
In the Origins tab, select the default origin or add one.
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.
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.
Select Save.
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.
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 and Origins.