Creating new sites and sub-domains with Webmin

By admin at 2019-09-08 • 0 collector • 2211 pageviews

STEP ONE: Make the docroot

  • Login to your VPS via SSH

#mkdir /home/domain.com/
#mkdir /home/domain.com/www/
#exit

1.png

STEP TWO: Create the Apache Configuration

  • Login via Webmin

  • -Click Apache Webservers

  • -Click Create virtual host

2.png


-Change the value of 'Document Root' to the folder you created via SSH (eg. /home/domain.com/www/)
-Change the value of Server Name to the name of the site (eg. example.com -or- sub.example.com)
-Click Create Now


3.png


-Click Apply Changes (this is in the uper right corner)


4.png


STEP THREE: Add the WWW or other Parked domains (optional)

While still in Webmin and in the Apache section do the following....

Click on Existing Virtual Hosts
Click on the Virtual Host you wish to modify
Click on Networking and Addresses

5.png


In the Alternate Virtual Server Names textarea, add any addition aliases you want to use such as www.example.com or www.sub.example.com or even parked domains www.example.org


6.png


Click Save
Click Apply Changes (this is in the uper right corner)


7.png


You may now create the necessary DNS records from your domain registrar for the domain or sub-domain you just created on your VPS (remember your aliases too!) and begin building in the docroot you created in step one!



Requires Login

Loading...