Application is not redirecting to HTTPS


I have deployed JAVA Application on Tomcat Server in the droplet IP address.

I have created new SSL certificate from Godaddy and applied. Set forwarding to HTTPS 443 rule and droplet HTTP 8080 post.

Both the load balancer and droplets status are healthy.

My application is running at port 8080.

Also, I enabled force HTTPS settings in the load balancer settings.

But my Java application still runs on HTTP port. Not redirected HTTPS.

I have added IP address as ‘A’ in GoDaddy and domain settings of DigitalOcean.

Please let me know how to solve this issue.


Nitin C N


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi @kiran306 ,

Can you use HTTPS service normally?If your answer is yes,maybe the following steps can help you config HTTPS force.

#add these after tomcat\conf\web.xml </welcome-file-list>

  <!-- Authorization setting for SSL -->
 	<realm-name>Client Cert Users-only Area</realm-name>

  <!-- Authorization setting for SSL -->
	<web-resource-collection >
		<web-resource-name >SSL</web-resource-name>

Finally it should be like this:

Please use ports that support HTTPS protocol if you only have one,don’t set it to redirect.In this time you should directly type in https://IPAddr or Domain name:port

Let me know if you have further questions, Shiroka