Allow end-users to access semarchy directly using the URL of the Tomcat server
Cédric BLANC
started a topic
over 2 years ago
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
C
Cédric BLANC
said
over 2 years ago
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.
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:
Stop and Undeploy the "/" and "semarchy" application from tomcat manager.
2. Deploy "semarchy.war" and "semarchy.xml" on "root" location as below:
3. Restart your application and access you domain name which will redirect you to semarchy application.
1 Comment
Cédric BLANC
said
over 2 years ago
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.
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:
Stop and Undeploy the "/" and "semarchy" application from tomcat manager.
2. Deploy "semarchy.war" and "semarchy.xml" on "root" location as below:
3. Restart your application and access you domain name which will redirect you to semarchy application.
Cédric BLANC
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
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:
2. Deploy "semarchy.war" and "semarchy.xml" on "root" location as below:
3. Restart your application and access you domain name which will redirect you to semarchy application.
Cédric BLANC
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:
2. Deploy "semarchy.war" and "semarchy.xml" on "root" location as below:
3. Restart your application and access you domain name which will redirect you to semarchy application.
-
xDM Compatibility with Java 17?
-
xDM on Docker
-
How to Upgrade Apache Tomcat?
-
Application Server Gives 404 Error
-
Amazon Aurora support
-
Change Prod Repository Type Without Reinstallation
-
Is It Possible to Import a V5.1.1 Data Model to V5.2.8?
-
"500 Internal Server Error" While Opening with Localhost
-
Enable Access to Azure File Storage?
-
Why am I getting Status 404 -- Not Found Error on Azure?
See all 29 topics