i just rebuilt one server and set hostname to server02.example.com.
Everything went smooth up to the letscencrypt thing.
I git'ed the code from letsencrypt in to folder /opt/letsencrypt/ and added /opt/letsencrypt/letsencrypt-auto to module config for Webmin.
Then i wanted to generate a system certificate and i got an errormessage, that i would need a virtual host for this.
So i created a virtual host for it and tried it again. Although apache is running and if i enter server02.example.com in my browser window it will show apache's default page, the letsencrypt creates w a 404 error:
Domain: server02.example.com Type: unauthorized Detail: Invalid response from http://server02.example.com /.well-known/acme-challenge/0A-xMf2B0waF04s- Od3muYoLGcaK0hj1qKInN5Y9JIg [188.8.131.52]: 404
I've also read in various places, that it could be a problem, when i redirect the http:// to https:// which i didn't do right now, but would like to.
So how to fix that or do i have to follow another best practice?
Thanks and best
I've seen this: but it seems it doesn't apply: https://www.virtualmin.com/node/40239