Can't figure out how to set up Multiple Vhosts to work with certbot in CentOS 6.8

I get the following message for my second domain on the server when I run certbot --apache for domains 1 and 2.

Obtaining a new certificate
Performing the following challenges:
tls-sni-01 challenge for
tls-sni-01 challenge for
Waiting for verification…
Cleaning up challenges
Generating key (2048 bits): /etc/letsencrypt/keys/0008_key-certbot.pem
Creating CSR: /etc/letsencrypt/csr/0008_csr-certbot.pem
Error: should only be one vhost in /etc/httpd/conf/httpd.conf
Currently, we only support configurations with one vhost per file


  • Unable to install the certificate

That's kind of a hard to miss hint, right?

Yeah, my problem was I couldn’t find documentation on setting up Multiple vhost files in a Redhat-type environment. I got a friend to help me out and I think I’m good to go:

create separate vhost entries for each of the separate sites on a dir & include it in the httpd.conf
include the dir - there’s already a dir that’s part of the default: /etc/httpd/conf.d/

Thanks anyway,


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