Certbot fails if apache is running as non-root user


#1

Hi I have configured an apache server in redhat under non-root user.
When i run the certbot it keeps saying

"No vhost exists with servername or alias of: distodt.tk (or it’s in a x
x file with multiple vhosts, which Certbot can’t parse yet). No vhost x
x was selected. Please specify ServerName or ServerAlias in the x
x Apache config, or split vhosts into separate files. x
x Falling back to default vhost *:443… x
x No vhost exists with servername or alias of: www.distodt.tk (or it’s x
x in a file with multiple vhosts, which Certbot can’t parse yet). No x
x vhost was selected. Please specify ServerName or ServerAlias in the x
x Apache config, or split vhosts into separate files. x
x Falling back to default vhost *:443… x
x Cleaning up challenges x
x File: x
x - Could not be found to be deleted x
x /etc/httpd/conf.d/le_tls_sni_01_cert_challenge.conf - LE probably x
x shut down unexpectedly x
x Error while running apachectl graceful. x
x Failed to reload httpd.service: Connection timed out x
x See system logs and ‘systemctl status httpd.service’ for details. "

However i have my httpd.conf and my vhostconfiguration file distodt.tk.conf setup properly
command i am using is
certbot --config-dir ~/.certbot/config --logs-dir ~/.certbot/logs --work-dir ~/.certbot --apache -d distodt.tk -d www.distodt.tk
Please advise asap


#2

Could you give us the contents of distodt.tk.conf if possible? (E.g. with http://pastebin.com/)


#3

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