How to enable SSL certificate for virtual host ?
I have set up the virtual host for my website. Directory structure is
www/html/-virtual host(website1.ca)/public_html/wordpress files
-main website’s files(website.ca)
i.e in html folder I have main website’s all files and domain name of virtual host http://prntscr.com/pphfdz . I have followed all the steps given in https://www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-encrypt-on-ubuntu-16-04 . It only enable SSL certificate for main website but not enabling SSL certificate for website which is on virtual host. It is showing that website is not secure http://prntscr.com/pphhkw for website who is set up on the virtual host.
Can you please guide me so that I can enable SSL certificate for website that is on virtual host?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×