These instructions apply to Webmin version 1.450
- Create a folder where you wish to store your sites files.
- You can do this in the Others > File Manager section.
- We typically use something like: /sites/domainname.com/http/
- Setup the vhost.
- Click on Servers > Apache Web Server in the left hand menu.
- Click the “create virtual host” tab.
- You can leave most settings as their default values, but you should fill out the following:
- Port: Generally, you’ll want to use port 80.
- Document Root: This is folder where you site’s files will be stored. Pick the folder you created in step 1.
- Server name: This is just your site’s domain name, e.g. domainname.com (leave out the www.)
- Click “Create Now”
- Add a server alias for www.domainname.com
- Click on the “Existing Virtual Hosts” tab in Servers > Apache Web Server.
- Click the virtual server you just created.
- Click on “Networking and Addresses”
- In the “Alternate Virtual Server Names” box, add any additional server aliases you want to use for this site, such as www.domainname.com
- Press “Save”.
- Click “Apply Changes” to get Webmin to restart Apache.