Configure a Vanity Domain Name for a Service Instance

By using the load balancer as the front-end to your Oracle Java Cloud Service instance, you can quickly and easily associate a vanity Internet domain name to your application environment. Rather than accessing your applications using a public IP address, clients can use your custom domain name.

For example, end users might currently access your application with the URL https://203.0.113.10/myapp/getstarted. But instead you want them to use the URL https://cloud.mycompany.com/myapp/getstarted.

Tasks:

Register a Custom Domain Name with a Third-Party Registration Vendor

Third-party vendors enable you to register custom domain names that resolve to your Oracle Java Cloud Service load balancer.

  1. Identify the public IP address for the load balancer in your service instance.
  2. Register your domain name through a third-party domain registration vendor, such as Register.com, Namecheap, and so on.

    For example, example.com.

  3. Resolve your domain name to the pubic IP address of the Oracle Java Cloud Service load balancer, using the third-party domain registration vendor console.

    For more information, refer to the third-party domain registration documentation.

Update Oracle Traffic Director to Use a Custom Domain Name

If your Oracle Java Cloud Service instance uses Oracle Traffic Director as a load balancer, update the load balancer configuration to use the custom domain name.

By default, if you created your service instance in an Oracle Cloud Infrastructure Classic region, external access to the load balancer console is disabled for security purposes. If you did not enable console access while provisioning your service instance, see Enabling Console Access in an Oracle Java Cloud Service Instance.

  1. Access the Oracle Java Cloud Service console.
  2. Click menu icon for the desired service instance and select Open Load Balancer Console.
  3. Log in to console using the credentials defined when provisioning your service instance.

    If you created your service instance using the Oracle Java Cloud Service console, the user name and password default to the Oracle WebLogic Server Administration Console user name and password.

  4. Access the load balancer configuration (for example, opc-config):
    • If your service instance is running Oracle Traffic Director 12c, click the Target Navigation icon Target Navigation icon. Expand the Traffic Director folder and click the name of the Traffic Director configuration.
    • If your service instance is running Oracle Traffic Director 11g, click Configurations and then click the name of the Traffic Director configuration.
  5. Navigate to the Virtual Server in this configuration (for example, opc-config):
    • If your service instance is running Oracle Traffic Director 12c, click Traffic Director Configuration and select Administration > Virtual Servers. Click the name of the virtual server.

    • If your service instance is running Oracle Traffic Director 11g, expand Virtual Servers in the navigation pane and click the name of the virtual server.

  6. In the General Settings section edit the Hosts field. Enter the custom domain name (for example, example.com) that you registered.

    If there are multiple entries, separate each by a comma.

  7. Activate your changes:
    • If your service instance is running Oracle Traffic Director 12c, click Apply.

    • If your service instance is running Oracle Traffic Director 11g, click Deploy Changes.