Letsencrypt – Unable to find a virtual host listening on port 80

Letsencrypt – Unable to find a virtual host listening on port 80

„Unable to find a virtual host listening on port 80 which is currently needed for Certbot to prove to the CA that you control your domain. Please add a virtual host for port 80.“

i got this error on my Centos 7 VM server with NextCloud app. To resolve  add .conf to the /etc/httpd/conf.d/ folder for example

vi /etc/httpd/conf.d/nextcloud.conf
<VirtualHost *:80>  
    ServerAdmin admin@example.com
    ServerName example.com
    ServerAlias www.example.com
    DocumentRoot /var/www/html 
</VirtualHost>

and restart httpd service

systemctl restart httpd

 

(Visited 8 367 times, 1 visits today)

1 komentář u „Letsencrypt – Unable to find a virtual host listening on port 80

  1. Pingback: Let’s Encrypt with DDNS on CentOS 7 | thealaskalinuxuser

Napsat komentář

Vaše e-mailová adresa nebude zveřejněna. Vyžadované informace jsou označeny *