CLOUD PAAS / APPLICATION SETTINGS

Running Multiple Custom Domains on GlassFish Server

This guide has been reviewed and reformatted for Ruk-Com Cloud PaaS. Screens may vary slightly by platform version.

Click or tap a screenshot to view it at its original size.

Objective

This guide explains how to use Running Multiple Custom Domains on GlassFish Server on Ruk-Com Cloud PaaS, with ordered procedures and practical verification points.

Before you begin

  • Sign in with an account permitted to manage the relevant environment.
  • Confirm the target environment, region and resources before saving changes.
  • Create a backup or rollback plan before changing a production system.

How to easily set up a domain name for Java Applications hosted with GlasFish Container Server brings together enterprise-grade and open-source facilities in a cost-effective, enterprise-ready application server with true interoperability. Including rich features, documentation, superior configuration and administration.

To run multiple domains for Java sites on GlassFish server, just follow these simple steps.

1. Log in to Ruk-Com Cloud Dashboard and click the button.New Environment

2. Select GlassFish as the application server and specify cloudlet limits, then type your environment name and click the Create button.

Ruk-Com Cloud PaaS procedure screenshot

3. In a few minutes your environment will be created and appear on the dashboard in the environment list.

Ruk-Com Cloud PaaS procedure screenshot

4. After that, you must add a CNAME Record or set up an A Record as described in the Domain Customization documentation.

5. For customizing the domain name select the button.SettingNext to your desired environment, select Custom Domains, then enter the appropriate domain name in the blank field. (As in the example, we will use myapplication.com and myapplication.org) and click the buttonBind

Ruk-Com Cloud PaaS procedure screenshot

Note: We have put the information in the hosts file for local testing. So this will only work from our machine that has a list of those hosts.

6. When you create the environment, a link and credentials will be sent to the GlassFish DAS node. You will need to log into the admin panel using these credentials and go to the Applications tab to deploy your application.

Ruk-Com Cloud PaaS procedure screenshot

7. After the application successfully deploys, go toConfigurations > default-config > Virtual Serversand click the buttonNewTo create a new virtual server

Ruk-Com Cloud PaaS procedure screenshot

8. Enter the ID for the new server. In the Host field, specify the domains associated with your environment separated by commas. Then select the appropriate Network Listeners as http and select the required Web Module.

Ruk-Com Cloud PaaS procedure screenshot

9. Save the changes and you can make sure your application is available across all specified domain names.

Ruk-Com Cloud PaaS procedure screenshot

As you can see Managing custom domains for applications is very easy with Ruk-Com Cloud's extensive suite of tools.