How to install SSL for tomcat on CWP

CentOS Web Panel is deployed in Contact us to find out our latest offers!

The Apache Tomcat® software is an open source implementation of the Java Servlet, JavaServer Pages, Java Expression Language and Java WebSocket technologies

To install SSL to on a tomcat server, please follow the below steps.
Step 1: Create Account
CWP.Admin Left Menu -> User Accounts -> New Account -> Enter domain,username and password -> create account

Step 2: Install Apache tomcat
CWP.Admin Left Menu -> Webserver Settings -> Tomcat Manager -> install tomcat
After tomcat is installed, click start
You should the following which means tomcat is running on port 8080
 
Process running on default tomcat port 8080
tcp6 0 0 :::8080 :::* LISTEN 20834/java

Step 3: Install AutoSSL
CWP.Admin left Menu -> Webserver settings -> SSL Certificates -> AutoSSL -> select user and domain -> install SSL

Step 4 : Configure Apache/Nginx as proxy servers
These options depend on the webservers you have currently installed

Option 1: Using Nginx Proxy
Install base Webservers :
CWP.Admin left Menu -> Webserver settings -> Select Webservers -> Select the option – Any option with nginx -> Save and rebuild configuration
 
Configure webservers for domain to be used for Tomcat:
CWP.Admin left Menu -> Webserver settings -> Webserver Domain Conf -> Select Username -> create configuration -> select the option – nginx->proxy->(custom port) -> check the box – Rebuild webserver conf for domain on save -> Enter port 8080 for the custom port, leave IP as 127.0.0.1 -> save changes
 
Option 2: Using Apache proxy
Configure webservers for domain to be used for Tomcat:
CWP.Admin left Menu -> Webserver settings -> Webserver Domain Conf -> Select Username -> create configuration -> select the option – apache->proxy->(custom port) -> check the box – Rebuild webserver conf for domain on save -> Enter port 8080 for the custom port, leave IP as 127.0.0.1 -> save changes
 

step 4: Test HTTPS access now
Domain can now be accessed via https.

You can also install ssl via ssl manager later if you have set apache or nginx as default webservers and set as a proxy to port via WebServers Domain Conf module.

CentOS Web Panel is deployed in Contact us to find out our latest offers!
>
WhatsApp chat WhatsApp us