How to Enable SSL for a Virtualmin Virtual Server

Posted by on Feb 28, 2017 | 0 comments

It nearly drove me nuts the first time I tried to enable SSL on a Virtualmin virtual server.  This topic comes up nine or ten times a year, so I thought I’d make a how-to on this topic.

#1  Enable SSL for your virtual server.

#2  Edit the associated sites-available conf file.  Replace the asterisk with the actual IP address of your server.  Mine has an internal, private IP address.  You need to change that “Any” to the actual IP address used by your server.

I like to use vi at the command line.  This screenshot shows the associated conf file that must be edited.

Change the asterisk in the first line to the IP address of your virtualmin server, then save the file.

I’ve obscured the IP address in these screenshots.

#3  Restart the apache web server, either from Virtualmin or through the command line.

Assuming this was your only issue, your website will now be available in both the http and https URLs.


Dennis Strain
Enclave Managed Networks
Box 365, Smithers, BC, Canada V0J 2N0
1-877-877-8793 toll-free phone & fax
1-250-847-2589 office
dstrain@enclave365.ca

Leave a Reply