How to configure a Java application to load for root of domain name ?

How to configure a Java application to load for root of domain name ?

1. Access "Apps" tab of NGASI panel and click the "+" link next to the application which needs to be configured to access using root of domain name.

Virtual Host Mapping

2. In the dialogue box that opens, select the domain name or sub-domain name for which application needs to be loaded from list box.

Virtual Host Mapping

3. Add selected domain name to application

Virtual Host Mapping

4. Click Submit Button

Virtual Host Mapping

5. Now go to "Web Server Configuration" tab of NGASI Panel, select domain name from list, then click "Set Wild Card" button

Virtual Host Mapping

6. By completing above given steps, application will be accessible using root of domain like http://domain.com, but it may not be able to access with www.domain.com . To be able to access with www.domain.com, you need to do domain alias entry in server.xml configuration file of Tomcat. We can do it using File Manager in control panel.

Virtual Host Mapping

7. Using File Manager, browse to the path of server.xml and edit it using "Code Editor" in File Manager.

Virtual Host Mapping

8. Configure www record as seen in screenshot.

Virtual Host Mapping

9. Save the changes and close file editor.

Virtual Host Mapping

10. We need to stop and start Tomcat service to get the changes done in server.xml reflected.

Off state, click highlighted button start applicatin server
Application server stop

On State, click highlighted button to stop application server
Application server start


Now you will be able to access the java application using formats domain.com as well as www.domain.com

  • 13 Users Found This Useful
Was this answer helpful?

Related Articles

cPanel Control panel - How to deploy java application through NGASI Application Manager panel

1. Access NGASI Panel from cPanel under "Advanced" section.   2. Access "Apps" section...

How to configure a java application to access using main domain name

1. Access NGASI Panel from Plesk or cPanel control panel. 2. Access "Web Server and Hosting...