One droplet, Multiple domain


#1

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. https://crt.sh/?q=example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is: https://www.osafar.com

I ran this command: certbot --apache -d osafar.com -d www.osafar.com -d cupchai.com -d www.cupchai.com

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/osafar.com.conf)

It contains these names: osafar.com, www.osafar.com

You requested these names for the new certificate: osafar.com, www.osafar.com,

cupchai.com, www.cupchai.com.

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

certificate?


(E)xpand/©ancel: E

Renewing an existing certificate

Performing the following challenges:

tls-sni-01 challenge for osafar.com

http-01 challenge for www.cupchai.com

tls-sni-01 challenge for www.osafar.com

http-01 challenge for cupchai.com

Waiting for verification…

Cleaning up challenges

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

<html><head>

<title>404 Not Found</title>

</head><body>

<h1>Not Found</h1>

<p"

IMPORTANT NOTES:

  • The following errors were reported by the server:

Domain: cupchai.com

Type: unauthorized

Detail: Invalid response from

http://cupchai.com/.well-known/acme-challenge/IVO3iwELV1n6V3R4nNn1BOcpGnSEoAKaRzzMZMBmeqs:

"<!DOCTYPE HTML PUBLIC “-//IETF//DTD HTML 2.0//EN”>

<html><head>

<title>404 Not Found</title>

</head><body>

<h1>Not Found</h1>

<p"

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


#2

Hi,

It seems that your apache config files (virtual hosts) does not contain cupchai.com… (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 cupchai.com to your www virtual host… (as server alias)

Thank you


#3

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


#4

Hi,

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

If there are virtual hosts containing www.cupchai.com as server name, please add the follow line under server_name (line)
server_alias cupchai.com

Thank you


#5

Works perfect! Thank You so much!!


#6

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


#7

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