Question

Broken setup after LetsEncrypt failed install

Hi all,

I am hoping someone would be kind enough to help a new learner out. I have a site I had setup and I’ve been administering it myself, learning as I go. I thought I would be up to installing LetsEncrypt onto the Ubuntu setup but alas failed miserably, and then when I tried to back out it turns out I don’t actually have a backup or any knowledge of how to set things up properly.

The site is Java based with all files stored in a DATA directory on the server which also includes TomCat 8.5.29 and the .war file (all files also seem to be stored here so…does the site service the WAR file or the unpacked content, ie. index.html or java files?). From this area I have the main site and then an additional management console -admin which allows me to manage the site content/users, etc.

The site itself is now pointing to an apache2 area serving the html standard apache page.

All help gratefully received. COVID means I have no savings to go back to the original developers to correct my incompetance.

thanks

MySQL is also running on the server.


Submit an answer

This textbox defaults to using Markdown to format your answer.

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

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Thanks for all the help guys.

I have got the let-encrypt working and also the proxy to redirect requests to port 443.

I don’t seem to be able to get tomcat to serve the pages though. I can navigate through the url to a static home page through mysite.com/filelocation but Tomcat doesn’t seem to do anything.

What part of a java application should I be pointing at in the directory within apache2.conf? The data area, tomcat conf or another area.

It looks like tomcat is listening on port 8443.

Learning lots as I go along and quite enjoying achieving something :) thanks in advance for your help/advice

If you still do struggle fixing this problem, then provide a result of

sudo grep -i -e servername  -e includeoptional $(find /etc/apache2/ -name "*.conf")

If you do not want to share your domain name, replace it with mydomain.com.

You might try to run apt-get with debugging options, so you might find out more information about this problem:

sudo apt-get -o Debug::pkgProblemResolver=true install python-certbot-apache