Welcome to Headwind MDM Q&A, where you can ask questions and receive answers from other members of the community.

Please do not post bug reports, missing feature requests, or demo inquiries. If you have such an inquiry, submit a contact form.

0 votes

Hello,

Due to a copy error (CP), I overwritten the server.xml file. I can't restore it properly. How can I proceed?

Thank you, I really don't want to lose my data sad

by (1.0k points)
edited by
I can connect to port 8080 on my domain name, but the connection to 443 (https) no longer works. I'm lost and almost crying lol
i do cp /var/lib/tomcat9/conf/server.xml~ /var/lib/tomcat9/conf/server.xml unintentionally

1 Answer

0 votes
 
Best answer

Run the script letsencrypt-ssl.sh from the installer. It will output the section which needs to be installed into server.xml to make https working.

But be careful, running the script multiple times (5 in a half an hour) will follow the ban of your domain by LetsEncrypt for a week!

by (37.5k points)
selected by
Thanks,
I modified in the ./letsencrypt-ssl.sh the "http_redirect=1", and the "domain", the steps went well, unfortunately, the server.xml file was not modified, and the https still does not work... The http does not work either, only the domain.com:8080. I should never have ordered "CP"... I have to return my school project tomorrow...
I succeeded by completely reinstalling the application and restoring the database. Thank you for your help !
...