Have incorporated certbot / letsencrypt , run the script - 'iptodomain' after you install your ssl certificates. Presently, only lets encrypt is compatible.



If you have not touched default apache config files and lets encrypt certs are installed then ;
Here is your fix:
https://raw.githubusercontent.com/da....06/iptodomain

Make the script executable and run it.