How to install Webmin on existing Apache + Let's Encrypt SSL configuration?

Posted July 15, 2020 1.6k views
ApacheControl PanelsLet's Encrypt

Using this guide for reference:

Currently have Apache + Let’s Encrypt SSL configured and working fine, plus a reverse proxy for Discourse in a Docker container. I was able to follow all points of the Webmin installation until I was tasked with obtaining an SSL certificate, which won’t work as I already have one. I tried just skipping that part but Webmin doesn’t appear at or mydropletip:10000, with or without https in the URL.

My vhost file looks a little different from the guide because of the aforementioned server configuration.

<VirtualHost *:80>
    ServerAdmin mygmail
    ProxyPass / http://localhost:10000/
    ProxyPassReverse / http://localhost:10000/
    DocumentRoot /var/www/
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
RewriteEngine on
RewriteCond %{SERVER_NAME} [OR]
RewriteCond %{SERVER_NAME}
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]

Is there any way I can manually configure what I need for Webmin to work?


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.

Submit an Answer
1 answer

Hi @orbitstorm88,

Can you check if WebAdmin is actually running on the said port? You can do that by typing in :

netstat -tulpen | grep 10000

If it’s there, then most probably you’ll need to allow it through your firewall. What firewall are you using, is it ufw or plain iptables?

Additionally, if you try your droplet’s IP + the port does it work?


  • Thanks for the response, @KFSys!

    Couple of key points to reiterate:

    1. The guide didn’t specify to open a port for Webmin. After reading your post, I went ahead and opened 10000 on TCP (using UFW).
    2. Per the guide, I edited /etc/webmin/miniserv.conf and changed SSL=1 to SSL=0. Changing that back won’t allow Webmin to load at all.
    3. Which brings me to this: I never completed Step 2 of the guide because I was supposed to obtain a certificate for Webmin but couldn’t because I already have one for Apache.

    I’m able to access and log into Webmin using or using my droplet’s IP. Any HTTP (unencrypted) variation will not load.

    For what it’s worth, here is the result of netstat:

    tcp        0      0 *               LISTEN      0          825319     8199/perl
    udp        0      0 *                           0          825320     8199/perl

    Doubt it’s relevant but the guide also had me edit the virtual host file and change ServerAdmin to my email. Previously, it was webmaster@localhost.