title: Let's Encrypt Unable to find a virtual host listening on port 80
body: <p><strong>■Background</strong></p>
  <p>trying to get SSL through Let's Encrypt</p>
  <p><strong>■Issue</strong></p>
  <p>As run the code below,</p>
  <pre><code>sudo certbot --apache -d hogehoge.com
  </code></pre>
  <p>I got the port 80 error</p>
  <pre><code>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.
  </code></pre>
  <p><a href="https://i.stack.imgur.com/AJL59.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/AJL59.png" alt="enter image description here" /></a></p>
  <p>and unable to resolve this error</p>
  <p><strong>■What I have tried</strong></p>
  <p>have set up the port 80</p>
  <pre><code>vim /etc/httpd/conf/httpd.conf
  </code></pre>
  <p>add the description in the file.</p>
  <pre><code> NameVirtualHost *:80
  
  &lt;VirtualHost *:80&gt;
  ServerAdmin root@hogehoge
  DocumentRoot /var/www/html
  ServerName hogehoge
  &lt;/VirtualHost&gt;
  </code></pre>
  <p>but I still got the same error.</p>
  <p>would you kindly tell me the cause and how to make it work?</p>