Certbot Letsencrypt Setting up standard web servers
Jump to navigation
Jump to search
Install certbot on an apache centos 7 server
yum install httpd systemctl enable httpd systemctl start httpd
Need to setup virtualhosts - setup httpd.conf first
# add the following to the end of /etc/httpd/conf/httpd.conf IncludeOptional sites-enabled/*.conf
mkdir /etc/httpd/sites-available /etc/httpd/sites-enabled
[root@wiki-dt ~]# cat /etc/httpd/sites-available/define-technology.com.conf
<VirtualHost *:80>
ServerName wiki.define-technology.com
ServerAlias define-technology.com
DocumentRoot /var/www/html
ErrorLog /var/log/httpd/wiki_error_log
CustomLog /var/log/httpd/wiki_requests.log combined
</VirtualHost>
ln -s /etc/httpd/sites-available/define-technology.com.conf /etc/httpd/sites-enabled/define-technology.com.conf
systemctl restart httpd
Add certbot
yum -y install epel-release yum -y install certbot python2-certbot-apache mod_ssl
Assumptions at this stage - Apache web server up and running in /var/www/html (in this case its a media wiki site)