Start a new topic
Answered

Allow end-users to access semarchy directly using the URL of the Tomcat server

How can my end-users access semarchy directly using the url of my tomcat server without the application name in the end? I would like https://semarchy.<domain>/ rather than https://<domain>/semarchy


Best Answer

There are a number of parts to that question.  

The host name

For https://semarchy.customerdomain.com to resolve, you will need to ask your network administrators to add "semarchy" as a host (or an alias for the existing host entry) in your company's domain "customerdomain.com".

 

The default port 

To get tomcat to respond to requests on the default ports (80 or 443) you will need to change the port in Tomcat's configuration file and on Linux servers, Tomcat will have to be started by the root (privileged) user as only privileged users can listen to port number in the 1-1024 range.

For enterprises, this is often handled by the load balancer.

 

The context

Typically, users connect to http://myhost.mydomain.com/semarchy.  In this example "semarchy" is what is called the context of the application server and is configurable when you deploy the application.

The easy way to do this is to redirect Tomcat's default page to http://myhost.mydomain.com/semarchy/welcome.  Here's a tutorial showing you how to do this.

However, if you wish to make the "semarchy" disappear so that the application is accessible directly from the URL http://myhost.mydomain.com you will need to replace what is called the ROOT Web App (which is automatically deployed when you install Tomcat).  Again, there are instructions and examples of how to do this on the web.  Here is one such example.


Considering the case where your application should be the root url on tomcat, below are the steps to follow:

  1. Stop and Undeploy the "/" and "semarchy" application from tomcat manager.
How can my end-users access semarchy directly using the url of my tomcat server without the application name in the end? I would like https://semarchy.<domain>/ rather than https://<domain>/semarchy https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/43333062470/original/HfB_-B49qobCARajU8Q5HdFvbXT_gvobGg.png?1655372775" data-fileid="43333062470" data-uniquekey="1655372771925">

      2. Deploy "semarchy.war" and "semarchy.xml" on "root" location as below:

How can my end-users access semarchy directly using the url of my tomcat server without the application name in the end? I would like https://semarchy.<domain>/ rather than https://<domain>/semarchy https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/43333062471/original/B8N_NPSgUr_wqYDvZVKWr5uDmvZ_U4aoMQ.png?1655372775" data-fileid="43333062471" data-uniquekey="1655372771925" style="width: 405px;">

     3. Restart your application and access you domain name which will redirect you to semarchy application.

1 Comment

Answer

There are a number of parts to that question.  

The host name

For https://semarchy.customerdomain.com to resolve, you will need to ask your network administrators to add "semarchy" as a host (or an alias for the existing host entry) in your company's domain "customerdomain.com".

 

The default port 

To get tomcat to respond to requests on the default ports (80 or 443) you will need to change the port in Tomcat's configuration file and on Linux servers, Tomcat will have to be started by the root (privileged) user as only privileged users can listen to port number in the 1-1024 range.

For enterprises, this is often handled by the load balancer.

 

The context

Typically, users connect to http://myhost.mydomain.com/semarchy.  In this example "semarchy" is what is called the context of the application server and is configurable when you deploy the application.

The easy way to do this is to redirect Tomcat's default page to http://myhost.mydomain.com/semarchy/welcome.  Here's a tutorial showing you how to do this.

However, if you wish to make the "semarchy" disappear so that the application is accessible directly from the URL http://myhost.mydomain.com you will need to replace what is called the ROOT Web App (which is automatically deployed when you install Tomcat).  Again, there are instructions and examples of how to do this on the web.  Here is one such example.


Considering the case where your application should be the root url on tomcat, below are the steps to follow:

  1. Stop and Undeploy the "/" and "semarchy" application from tomcat manager.
How can my end-users access semarchy directly using the url of my tomcat server without the application name in the end? I would like https://semarchy.<domain>/ rather than https://<domain>/semarchy https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/43333062470/original/HfB_-B49qobCARajU8Q5HdFvbXT_gvobGg.png?1655372775" data-fileid="43333062470" data-uniquekey="1655372771925">

      2. Deploy "semarchy.war" and "semarchy.xml" on "root" location as below:

How can my end-users access semarchy directly using the url of my tomcat server without the application name in the end? I would like https://semarchy.<domain>/ rather than https://<domain>/semarchy https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/43333062471/original/B8N_NPSgUr_wqYDvZVKWr5uDmvZ_U4aoMQ.png?1655372775" data-fileid="43333062471" data-uniquekey="1655372771925" style="width: 405px;">

     3. Restart your application and access you domain name which will redirect you to semarchy application.

Login to post a comment