So I just created my Ubuntu server and everything is working fine. I set up the virtual host on my Apache following this tutorial (https://www.digitalocean.com/community/articles/how-to-set-up-apache-virtual-hosts-on-ubuntu-12-04-lts). My question is: how can I create a subdomain? I want that when you go to subdomain.mydomain.com Apache goes to /var/www/subdomain/public_html (or something like that…).
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.
Click below to sign up and get $100 of credit to try our products over 60 days!