How to Use Custom Domains

Payara Cloud customers with the Standard or Premium level subscriptions have the option of creating custom domains for end users to access their applications.

Payara Cloud defines a URL to applications when you upload them to your namespace. By default, the url is a combination of your namespace name and application name to ensure it is unique. It might look something like this:

(not a real URL).

You probably don’t want to give a URL that looks like that to your end users to access your application. With Payara Cloud’s custom domain option, you can customize the url so it is something like instead.

Click on the namespace containing your application from the Namespace Navigator. In the Namespace Actions drop down menu, click Custom Domain.

A screenshot of a computer Description automatically generated

Click Add Custom Domain.

Type in the domain name you would like to use to access your application in the Custom Domain Name field.

Graphical user interface

Click Set Custom Domain.

You are then presented with the Custom Domain screen and the information to set up the DNS record:

Graphical user interface

Copy the value in the Set up CNAME DNS Record value field and enter it into the CNAME of the DNS system you are using.

After setting up the CNAME value, click on the Check DNS button of this screen to ensure it was set up correctly. If the set up was successful, you can then use the custom domain you set up to access your application. Note that it can take some time for changes in the DNS system to propagate.