One droplet, Multiple domain


Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g., so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is:

I ran this command: certbot --apache -d -d -d -d

It produced this output:

Saving debug log to /var/log/letsencrypt/letsencrypt.log

Plugins selected: Authenticator apache, Installer apache

You have an existing certificate that contains a portion of the domains you

requested (ref: /etc/letsencrypt/renewal/

It contains these names:,

You requested these names for the new certificate:,,,

Do you want to expand and replace this existing certificate with the new


(E)xpand/©ancel: E

Renewing an existing certificate

Performing the following challenges:

tls-sni-01 challenge for

http-01 challenge for

tls-sni-01 challenge for

http-01 challenge for

Waiting for verification…

Cleaning up challenges

Failed authorization procedure. (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from "<!DOCTYPE HTML PUBLIC “-//IETF//DTD HTML 2.0//EN”>


<title>404 Not Found</title>


<h1>Not Found</h1>



  • The following errors were reported by the server:


Type: unauthorized

Detail: Invalid response from



<title>404 Not Found</title>


<h1>Not Found</h1>


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.

My web server is (include version):

The operating system my web server runs on is (include version):

My hosting provider, if applicable, is: Ubuntu 18.04

I can login to a root shell on my machine (yes or no, or I don’t know): yes

I’m using a control panel to manage my site (no, or provide the name and version of the control panel): no. i’m using console



It seems that your apache config files (virtual hosts) does not contain… (does contain its www version)

In order for you to use Apache plugin, all domains you requested should be identified in virtual hosts.

To solve the issue, please add to your www virtual host… (as server alias)

Thank you


Thank you for your reply. May i know how to add to my virtual host? Sorry. I’m a newbie. What i mean for multiple domain is, multiple website with difference web.



If you followed some tutorials, you might have created virtual hosts under /etc/apache2/sites-available/

If there are virtual hosts containing as server name, please add the follow line under server_name (line)

Thank you


Works perfect! Thank You so much!!


It’s so nice to have a straightforward solution to problems like this that works right away! Nice answer, @stevenzhu.


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.