The ProxyPass directive allows Apache to pass requests for YOUR-HOSTNAME.YOUR-DOMAIN to the Webmin server, which is running in the port 10000, and the ProxyPassReverse directive ensures internal links generated from the Webmin server pass through apache.Įnable the virtual host by creating a symbolic link of the above file inside /etc/apache2/sites-enabled directory. SSLCertificateChainFile /etc/letsencrypt/live/YOUR-HOSTNAME.YOUR-DOMAIN/chain.pem SSLCertificateKeyFile /etc/letsencrypt/live/YOUR-HOSTNAME.YOUR-DOMAIN/privkey.pem SSLCertificateFile /etc/letsencrypt/live/YOUR-HOSTNAME.YOUR-DOMAIN/cert.pem $ vi /etc/apache2/sites-available/nfĬustomLog $/access.log combined Next, create the Apache virtual host for our webmin installation with the following configuration: Enable these modules one by one by issuing following commands from the terminal and restart apache. įor this, we need to enable three Apache modules: proxy and proxy_http and ssl. This will allow you to access Webmin via instead of. If you have Apache installed and running on port 80, you can configure Apache to act as a proxy gateway for Webmin. Configure an Apache virtual host and proxy You can also check out Webmin’s official wiki to explore Webmin’s features even further. With Webmin, you can do all this with a GUI rather than typing the commands-a nice bonus for those who don’t want to spend much time on a terminal. What’s next? It all depends on your needs and applications, but you can go ahead and experiment with creating users/groups, changing passwords, scheduling cron jobs, creating virtual hosts with Apache, manage firewalls, and more. You’re all set up to get cPanel-like administrative power for free!
All packages available for update are listed on the left-hand side under the Package Updates section. An excellent place to start it upgrading your system’s packages. Now that the Webmin is installed and encrypted with SSL, you can start exploring its many features and capabilities. On successful fetching of the certificate, you get the following message: Choose Other directory for Website root directory for validation file option and enter /var/Keep the rest of the options in their default state.Ĭlick Request Certificate. Enter your domain name in hostname for certificates box. Go to Webmin > Webmin Configuration > SSL Encryption and select the Let’s Encrypt tab.
Navigate to Webmin > Webmin Configuration in the Webmin dashboard and click on the box with a gear icon on the top-left corner called “Module Config.” Enter the full path (/usr/local/letsencrypt/letsencrypt-auto) of the Let’s Encrypt binary and hit the save button. First, clone the Let’s Encrypt repository in the /usr/local folder.
To keep the connection with your Webmin server encrypted, let’s use a free Let’s Encrypt’s SSL certificate. On successful login, you are redirected to the Webmin dashboard. Webmin warns you about an untrusted certificate-that’s fine, just add it to the exception list and login with the user you use to connect to the server via SSH. You can now visit the Webmin interface via. Edit /etc/apt/sources.list and add the following lines at the end of the file.Īdd Webmin’s PGP key, so your system trusts the new repository we just added. The first step towards the installation of Webmin is to add Webmin’s repository information to your source list for easy installation and updating of Webmin and its modules using apt-get. They should be updated based on what you just specified. Now check the hostname and FQDN of your VPS. Run the command below to restart hostname service and network manager to apply changes: Here’s an example using an IP of 123.456.78.9, a hostname of webmin and a domain of. YOUR-IP YOUR-HOSTNAME.YOUR-DOMAIN YOUR-HOSTNAME Next, edit the file /etc/hosts and add the following line at the end: The format is YOUR-IP YOUR-HOSTNAME.YOUR-DOMAIN YOUR-HOSTNAME. Set the hostname of the system by editing the file /etc/hostname, replacing YOUR-HOSTNAME with your hostname of choice: Once you have an FQDN, you can set an A record on its DNS to point toward the IP address of your VPS. An FQDN is an absolute way of specifying a particular machine on a specific network and includes both a hostname and a domain name.
Configure fully-qualified domain name (FQDN) of your VPSįor Webmin to work you need to set up a fully-qualified domain name (FQDN). Score a 16GB Performance VPS with 160GB of NVMe storage for just $99/year for a limited time! There's nothing else like it on the market, at least not at these prices. We DOUBLED the amount of blazing-fast NVMe storage on our most popular plan and beefed up the CPU offering on these plans. Develop at hyperspeed with a Performance VPS from SSD Nodes.