how to create a subdomain with ubuntu

Posted May 6, 2018 12.4k views

Hello, I’m using ubuntu in my VPS and wanted to create a subdomain, I use Webmin as a manager, is there any tutorial?

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

We do not provide a tutorial on configuring VirtualHosts (to handle subdomains) on Webmin but we do offer this guide which covers setting this up manually.

Webmin does include some details on using the VirtualHost configuration tools they provide in their documentation here.

by Brennen Bearnes
The Apache web server is the most popular way to serve web content on the internet. Apache has the ability to serve multiple domains from a single server by using a mechanism called "virtual hosts". If a virtual host is configured correctly for each domain, the web server can correctly route traffic to the appropriate files based on the domain name requested. In this guide, we'll demonstrate how to configure Apache virtual hosts on an Ubuntu 16.04 server.