India Cloud, Australia Cloud, United Kingdom Cloud, Brazil Cloud, and control planes added after them use a different ingress controller. US Cloud, EU Cloud, Canada Cloud, and Japan Cloud use the original ingress controller. The same CloudHub 2.0 features are available on every control plane. HTTP header handling and path rewrite differ.
If you move an app to India Cloud, Australia Cloud, United Kingdom Cloud, Brazil Cloud, or a control plane added after them, review this behavior before you switch traffic.
HTTP Header Handling
x-forwarded-host
-
On India Cloud, Australia Cloud, United Kingdom Cloud, Brazil Cloud, and control planes added after them, the ingress controller passes the client Host header to the app unchanged and doesn’t send x-forwarded-host.
On US Cloud, EU Cloud, Canada Cloud, and Japan Cloud, the ingress controller removes the original host and sends that value in x-forwarded-host.
If the app reads x-forwarded-host, update it to read the Host header.
x-correlation-id
-
On US Cloud, EU Cloud, Canada Cloud, and Japan Cloud, the ingress controller creates an x-correlation-id value when the client doesn’t send one.
On India Cloud, Australia Cloud, United Kingdom Cloud, Brazil Cloud, and control planes added after them, the ingress controller forwards x-correlation-id only when the client sends it.
If tracing depends on a correlation ID from the ingress controller, send x-correlation-id from the client or create the ID in the app.
x-ssl-client-serial
-
When Forward SSL Session is enabled, the ingress controller sends the client certificate serial number in x-ssl-client-serial.
On US Cloud, EU Cloud, Canada Cloud, and Japan Cloud, the value is a decimal integer.
On India Cloud, Australia Cloud, United Kingdom Cloud, Brazil Cloud, and control planes added after them, the value is a hexadecimal string. That string matches the serial number shown by certificate tools such as OpenSSL.
If the app reads this header, parse a hexadecimal string on those control planes.
Path Rewrite
Path is the path clients request. Path Rewrite is the path the HTTP listener in the app expects. A trailing slash is part of the path, so set Path and Path Rewrite to match the public URL and the application endpoint, including the slash.
On India Cloud, Australia Cloud, United Kingdom Cloud, Brazil Cloud, and control planes added after them, use these values:
| Expectation |
Configuration of Path and Corresponding Path Rewrite |
URL |
Application Endpoint |
Path |
Path Rewrite |
example.com
|
/
|
/
|
/
|
example.com/
|
/
|
/
|
/
|
example.com
|
/test
|
/
|
/test
|
example.com
|
/test/
|
/
|
/test/
|
example.com/home
|
/test/home
|
/
|
/test/
|
example.com/test/home
|
/home
|
/test
|
/
|
example.com/test/home
|
/home
|
/test/
|
/
|
example.com/v1/hello
|
/helloworld
|
/v1/hello
|
/helloworld
|
example.com/v1/hello/test
|
/helloworld/test
|
/v1/hello
|
/helloworld/
|
Application Names
The application name you specify can contain between 3 and 42 alphanumeric characters
(a-z, A-Z, 0-9) and dashes (-).
They cannot contain spaces or other characters.
The application name must start with a letter (a-z or A-Z). It cannot start with a number or dash and it cannot end with a dash.
To ensure that names are unique and avoid domain conflicts, CloudHub 2.0 adds
a six-character unique-id to the application name that you specify in the public endpoint URL.
The application name identifies your application not only in Runtime Manager but also in the public cloudhub.io domain.
For example, an application named myapp is accessible at http://myapp-unique-id.shard.usa-w2.cloudhub.io. You must have unique application names for each deployment target.
To further customize your app names, you can create a naming convention.
For example, you could prepend your company name and department to all application names,
such as mycompany-mydept-myapp.
You can then add DNS records to hide the complex application name.
For example, you might route requests to myapp.mycompany.com to mycompany-mydept-myapp-unique-id.shard.region.cloudhub.io.
Make application file names as unique as possible. An app cannot be deployed if it shares the same name as an asset in Exchange.
Placeholders
The subdomain and path support the following optional lowercase placeholders:
| Placeholder |
Resolves to |
app-name
|
Name of the app that you specified in the Application Name field when you deploy the app |
business-group-id
|
Business group ID associated with the app |
environment-id
|
Environment that you deploy the app to |