Bash script to automate the apache virtual host setup and enabling HTTPS for domain using Let’s Encrypt and CertBot in centos
This bash script is totally automated the below two tutorials.
how-to-install-the-apache-web-server-on-centos-7
how-to-secure-apache-with-let-s-encrypt-on-centos-7
wget https://raw.githubusercontent.com/aghilanbaskar/vhost-centos/main/virtual-host.sh
Run the bash script
./virtual-host.sh
It will asking for domain name. Enter your domain name. That's it.
Please make sure you have pointed out your A record in DNS to the VM you are going to run this script.
Pull requests are welcome.