Hey everyone, I'm kinda new to Linux and Tomcat, and I was recently given access to an existing CentOS 7 VM running some web apps on Tomcat. I managed to renew the expired SSL certificate for one of the apps and got HTTPS working. However, I ran into an issue with a second CentOS 7 VM where there's no HTTPS set up yet. I tried using the newly generated certificate, but when I access the application over HTTPS, it just redirects to the Tomcat homepage instead of loading my web app. I'm wondering if I need to redeploy the WAR file of the application for it to work over HTTPS? Any insights would be super helpful! Thanks!
2 Answers
First things first, check if there are any errors or messages in the Tomcat logs; they can provide helpful info. Also, make sure that the Tomcat connector is configured for HTTPS/SSL in your configuration file. You might also need to add the SSL certificate to the Java keystore if you haven't already.
Double-check that the port in your URL matches the one defined in your Tomcat connector setup. Also, it's worth checking if you're accessing Tomcat directly or if there's an Apache server in front of it, which might affect how the requests are routed.
Related Questions
Cloudflare Origin SSL Certificate Setup Guide
How To Effectively Monetize A Site With Ads