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 4 158 times, 9 visits today)

Napsat komentář

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