Question

Apache Tomcat configuration error

Hello, Iam a newbie to DigitalOcean. But am knowledgeable in Apache and tomcat.

When I set up the tomcat, I was able to visit the manager(64.225.14.63:8080/manager/html) and host manager(64.225.14.63:8080/host-manager/html/) urls.

Later, iamLost.co was not reachable when I updated for ssl connection between apache2 and tomcat using mod_jk by following the steps in url: https://www.digitalocean.com/community/tutorials/how-to-encrypt-tomcat-8-connections-with-apache-or-nginx-on-ubuntu-16-04

Therefore I have instead commented JKMount /* ajp13_worker statement recommended by the above url in the files: /etc/apache2/sites-enabled/default-ssl.conf and /etc/apache2/sites-enabled/000-default.conf I completed “Restricting Access to the Tomcat Installation” section as listed in that page.

Now I am unable to visit the manager url to complete my deployment. Please help.

Thank you for your time.

Subscribe
Share

I found that the issue occurs when we add address=“127.0.0.1” in /opt/tomcat/conf/server.xml per the document at https://www.digitalocean.com/community/tutorials/how-to-encrypt-tomcat-8-connections-with-apache-or-nginx-on-ubuntu-16-04 But now iamlost.co is not reachable… trying to find out why that is not reachable. :)


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 there @spansoft,

I can see that your domain name is returning an internal 500 error, this is most likely an issue with your Apache configuration.

What I could suggest here is following the steps from this answer here on how to troubleshoot common Apache issues:

https://www.digitalocean.com/community/questions/how-to-troubleshoot-common-apache-issues-on-linux-server

The most important things to check are the configuration test and the Apache error log.

Feel free to share the output here so that I could try to further advise!

Regards, Bobby