title: How to solve unauthorized error when installing ssl certificate with certbot?
body: <p>I am trying to install ssl certificate on a specific domain with letsencrypt but I am getting below error every time.</p>
  
  <pre><code>Obtaining a new certificate
  Performing the following challenges:
  http-01 challenge for subdomain.domain.com
  Waiting for verification...
  Cleaning up challenges
  Failed authorization procedure. subdomain.domain.com (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://subdomain.domain.com/.well-known/acme-challenge/QjvSK-sa8wFxqxiZoqHBgQNx8x2O0NsojTOQ-_SSS7Q [167.99.94.47]: "&lt;!DOCTYPE html&gt;\n&lt;html&gt;\n    &lt;head&gt;\n        &lt;meta charset=\"UTF-8\" /&gt;\n        &lt;meta name=\"robots\" content=\"noindex,nofollow\" /&gt;\n   "
  
  IMPORTANT NOTES:
   - The following errors were reported by the server:
  
     Domain: subdomain.domain.com
     Type:   unauthorized
     Detail: Invalid response from
     http://subdomain.domain.com/.well-known/acme-challenge/QjvSK-sa8wFxqxiZoqHBgQNx8x2O0NsojTOQ-_SSS7Q
     [167.99.94.47]: "&lt;!DOCTYPE html&gt;\n&lt;html&gt;\n    &lt;head&gt;\n        &lt;meta
     charset=\"UTF-8\" /&gt;\n        &lt;meta name=\"robots\"
     content=\"noindex,nofollow\" /&gt;\n   "
  
     To fix these errors, please make sure that your domain name was
     entered correctly and the DNS A/AAAA record(s) for that domain
     contain(s) the right IP address.
  </code></pre>
  
  <p>My website that using this domain is php project that running on docker and it is hosting on digitalocean droplet.</p>
  
  <p>I make all domain redirects and domain redirection is working. But not ssl.</p>
  
  <p>How can manage this problem?</p>
  
  <p>Could you help me with this? </p>