MNSP's picture

 

Hello, I installed the server lamp and I do not understand how the server works and the interactions between apache and webmin. If I connect to the url of the server, I access a page on ports 80 and 443 which returns on the control panel (web shell, webmin, Adminer). The page comes from apache or webmin? Apache returns to the control panel ? In https, the certificate was issued to lamp but the CA is invalid. Does the lamp server come with a self-signed certificate? I tried to install a lets encrypt certificate by following a tuto: since the browser considers that the certificate is self-signed, I guess I missed something ... I read that webmin was using port 10000 and that's what I see in the configuration. How does it happen that I access webmin on port 12321, it is a redirection since apache? In advance thank you for your answers.

Forum: 
Jeremy Davis's picture

Apache directly serves ports 80, 443 and 12322 (Adminer). Webmin and Webshell both have their own built in mini-servers but are hidden behind stunnel (sort of like a local proxy). Stunnel listens on ports 12320 & 12321 for external connections and then hands the connection to Webmin/Webshell. Webmin is listening on port 10000, but will only allow connections from the local machine (so stunnel can connect, but you can't connect directly to it.

If you also wish to use your Let's Encrypt cert for Webmin/Webshell, you'll need to reconfigure stunnel to also use your cert. The config can be found at /etc/stunnel/stunnel.conf. Once you have edited the conf file to point to your Let's Encrypt cert, then restart stunnel:

service stunnel4 restart

I hope that clears things up. If you have further questions or feedback, please share. :)

Add new comment