Question

Problem with installing LetsEncrypt on Nginx Centos 7 after installing iRedMail

So I installed iRedMail for my mail server, after that I wanted to install LetsEncrypt but it gives me errors.

IMPORTANT NOTES:
 - The following errors were reported by the server:

   Domain: mail.placetoknow.com
   Type:   unauthorized
   Detail: Invalid response from
   http://mail.placetoknow.com/.well-known/acme-challenge/xZnfjqAedEiwkmbe2BWNWMT1ul-6MAyypleQOxeo3Ww:
   "<html>
   <head><title>404 Not Found</title></head>
   <body bgcolor="white">
   <center><h1>404 Not Found</h1></center>
   <hr><center>"

   Domain: app.placetoknow.com
   Type:   unauthorized
   Detail: Invalid response from
   http://app.placetoknow.com/.well-known/acme-challenge/C83_ljkYsC2Dfue6X4x0uK3ySZZS2k35X6vfAnC1oEY:
   "<html>
   <head><title>404 Not Found</title></head>
   <body bgcolor="white">
   <center><h1>404 Not Found</h1></center>
   <hr><center>"

   Domain: www.placetoknow.com
   Type:   unauthorized
   Detail: Invalid response from
   http://www.placetoknow.com/.well-known/acme-challenge/GT-feTfFHHlRYl6wgQsXve8ji9JxpveJbIKkW4M4VLo:
   "<html>
   <head><title>404 Not Found</title></head>
   <body bgcolor="white">
   <center><h1>404 Not Found</h1></center>
   <hr><center>"

   To fix these errors, please make sure that your domain name was
   entered correctly and the DNS A record(s) for that domain
   contain(s) the right IP address.

I really don’t know how to solve this problems. Thank you in advance


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.

@Chempo Okay, something is wrong, since the server-block you posted is for your root domain, but the errors in the first post lists 3 subdomains www mail app.

So somewhere there must be more Nginx configuration - if not, then you need to create the server-blocks for the other subdomains: https://www.digitalocean.com/community/tutorials/how-to-set-up-nginx-virtual-hosts-server-blocks-on-centos-6 Skip step 6 about creating a local hosts file.

Hi @Chempo

Can you post your Nginx server block? It’s located in /etc/nginx/sites-enabled/[the name of your configuration].conf