Report this

What is the reason for this report?

Broken setup after LetsEncrypt failed install

Posted on October 18, 2020

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.



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!

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.

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

Hi @ColonelYeehaw,

You mentioned the website is on a Java based one, on which port is it listening and are you actually using proxy to forward requests from port 80 (the standard port for websites) to your Application?

Additionally, are you going to use Apache for some sort of frontend which will use your Java application as a backed?

I’m asking these so that I can better understand what’s your setup and try to help out.

Regards, KFSys

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.