failed to request certificate : no virtual host matching ftp.mysite.com was found

13 posts / 0 new
Last post
#1 Tue, 11/06/2018 - 15:46
pol2095

failed to request certificate : no virtual host matching ftp.mysite.com was found

Hello,

I try to create a let's encrypt certificate for mysite.com but I have this error :

failed to request certificate : no virtual host matching ftp.mysite.com was found

Thanks

Tue, 11/06/2018 - 16:50
Siddharth Singh

Can you explain me more, I think you have to clear you redirection on root folder.

SAND IT SOLUTION

Wed, 11/07/2018 - 03:42
pol2095

I just create a let's encrypt certificate with Webmin, it work for mysite.com, www.mysite.com but not for ftp.mysite.com

where is the root folder ?

Wed, 11/07/2018 - 15:13
noisemarine

It was spam and not a real reply.

Check you have a dns entry for ftp.mysite.com, and that if you visit it with a web browser that it goes to the directory you expect.

Wed, 11/07/2018 - 17:48
marcelorp

@noisemarine Its a spam? I really don't know...but this forum don't have moderator for that?

@pol2095 Please explain more your error, when you get this message, when tried to create a new cert to ftp.domain.tld? Did you have a DNS record type 'A' with name 'ftp' pointing to 'IPv4 address of you host'?

Thu, 11/08/2018 - 14:30
pol2095

When I try to connect to ftp.mysite.com on port 80 in web browser I have this message error :

Forbidden
You don't have permission to access / on this server.


I think "let's encrypt" had the same problem
Is-it to possible to add an index.html on this url like a web ftp ?
I tried to add in "/home/mysite/public_html/ftp/index.html", but it doesn't work

Thu, 11/08/2018 - 14:47
marcelorp

Did you have virtual host setted on apache config file? Like that:

<VirtualHost 127.0.0.1:80>
    DocumentRoot "/home/mysite/ftp/public_html"
    ServerName ftp.mysite.com
    ServerAlias ftp
</VirtualHost>
Thu, 11/08/2018 - 15:12
pol2095

i work thanks

Thu, 11/08/2018 - 15:16
marcelorp

But you have created a directory in that folder?

mkdir /home/mysite/ftp
mkdir /home/mysite/ftp/public_html
chown -R mysite:mysite /home/mysite/ftp
Thu, 11/08/2018 - 15:18
pol2095

It work thanks

Thu, 11/08/2018 - 16:12
pol2095

I created a virtualhost for port 443 for ftp.mysite.com, and SSL is broken, https://mysite.com is broken too

Thu, 11/08/2018 - 16:16
marcelorp

Did you point the certificate and key file on Apache config? Like that:

<VirtualHost 127.0.0.1:443>
    ServerName ftp.mysite.com
    SSLEngine on
    SSLCertificateFile "/home/mysite/ssl.cert"
    SSLCertificateKeyFile "/home/mysite/ssl.key"
</VirtualHost>
Thu, 11/08/2018 - 16:19
pol2095

Thanks I have missing this

Topic locked