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
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.
- Identify the public IP address for the load balancer in your service instance.
- Register your domain name through a third-party domain registration vendor, such as
Namecheap, and so on.
- 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.
- Access the Oracle Java Cloud Service console.
- Click for the desired service instance and select Open Load Balancer Console.
- 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.
- Access the load balancer configuration (for example,
- If your service instance is running Oracle Traffic Director 12c, click the 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.
- Navigate to the Virtual Server in this configuration (for example,
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.
- 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.
- 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.