Operating System & Version
CENTORS 7.8 kvm
cPanel & WHM Version
Newest version

Inwin1

Registered
May 25, 2020
4
0
1
idk
cPanel Access Level
Reseller Owner
Hello!

I just had a couple of questions regarding ea-tomcat85 and my Java spring boot web application. At the current time you can access my web application via mydomain.com/<folder of .war file>/index.html

Firstly, do you guys know or have any good articles on how to do so that when I go to mydomain.com I get automatically sent to the webapplication (so that I don't have to search the whole link as above). My second question is how to remove the .html at the end of the pages, as normally you would use the .htaccess, but I am quite unsure on how to do it in a java web application.

Thank you for all the replies!

Best Regards
- Inwin1
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,301
363
Houston

Inwin1

Registered
May 25, 2020
4
0
1
idk
cPanel Access Level
Reseller Owner
This is explained in the Apache documentation here: mod_dir - Apache HTTP Server Version 2.4 there's the following for Tomcat Tomcat 8 filter to remove extensions from URLs as well as Tomcat base URL redirection
Ah, alright thank you!

Another question I have is that, currently I have my website https://example .com (had to put space so that it doesnt create automatic link) at the main domain which shows the content in the public_html, and have my java web application at a url like this https://example.com:10002 . What I would like is to have the https://example .com direct to my webapps folder in ea-tomcat. I have been reading a bit, and it looks like I need to change up the port for the java web application to 443, but the issue is that the port is already used for the public_html. How can I change this up, so that https://example .com would point to the correct java web application, situated at the current address https://example.com:10002?

Please note I am using example.com as an example domain, its not my actual website.

Thank you so much for the help!
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,301
363
Houston
443 is used by default for Apache SSL but you can change that port in WHM>>Server Configuration>>Tweak Settings - once Apache SSL is listening on an alternate port you can assign 443 to the service you need.