Checkout this tutorial for how to setup your own domain in DO.
Next up in line, I wanted to create a subdomain for the blog. So it'll end up like blog.sohulk.pw.
This tutorial helps setup
Apache for subdomains. Basically, the important point is the
ServerName field. My config files looke like this:
<Virtualhost *:80> ServerName blog.sohulk.pw ServerAdmin firstname.lastname@example.org ProxyPass / http://localhost:2368/ ProxyPassReverse / http://localhost:2368/ </Virtualhost>
That is not all, you'll have to setup your DNS properly.
This tutorial helps.
CNAME has to be
* for name, and
@ for hostname. Check that your zone file reflects the changes before testing. It could take a while.
This is how my DNS setting looks like.