This is a pretty simple guide to setting up a Vanity URL on Load Balancer to APEX on ADB. A lot of the information is contained in other blogs, so by following this, you should end up with a working Vanity URL on ADB on a Private End Point.
Prerequisites
You cannot do this on Always Free ADB because the Network Access cannot be updated to a Private Endpoint which is critical for obtaining the ADBs IP address & Load Balancers need IP addresses to work
You have completed the following steps:
- You have created an OCI Load Balancer - see guide and moved ADB to a Private End Point & followed all steps including setting your certificate
Steps
In OCI, find your Load Balancer (lb) click Backend set > bs-lb
Click the on the Update Health Check button
Set URL path (URI) to
/ords/
and Status code to 302 (Credits to Mortiz) and click Save HealthcheckClick Backend Sets > bs-lb > Edit
Click Use SSL, Certificate resource = Load balancer managed certificate & choose the certificate with Use SSL checked
Click Backends > Add Backend
For Oracle Managed ORDS Choose IP Addresses = ADB IP Address (you should now have its IP when you moved it to Private Endpoint) & Port = 443
Click Add & Close the popup
Wait for Successs or refresh the page
Setup Domain Registrar DNS
Click on Load Balancer Details in your Breadcrumb and find the public IP Address
In your Cloudflare Dashboard go to DNS > Records
Add a domain or subdomain to redirect to your Load Balancer IP Addess
Give it a go
Want it to redirect to a custom Application or Landing Page instead? - see this guide
Easy wasn’t it?
ENJOY!
What’s the picture its Wetherby Weir in Autumn. Visit Yorkshire!