I am trying to set up a simple site with https (only) with Apache for static delivery and Tomcat (on 8443) for dynamic (db access etc) with mod_jk or otherwise. I can’t find an easy one on google. If some one can create one or share one, will appreciate.
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.
https://www.digitalocean.com/community/tutorials/how-to-use-apache-http-server-as-reverse-proxy-using-mod_proxy-extension
What I’ve seen people do is to let Apache httpd handle the security stuff and then proxy to Tomcat. Tomcat’s port would then not be directly accessible outside the firewall but only exclusively through the proxy. It’s a bit complicated, but I believe the Apache httpd manual for mod_proxy should have the basic info you need. Good luck.