How to subdomains on Apache with mod_rewrite

Because I like to play with a lot of projects and code, I create subdomains for oprsteny.cz for almost every project. Instead of going through the hassle of creating a CNAME or A record for every subdomain, creating an Apache vhost file and enabling it and creating the necessary directory structure, I figured there’s an easier way to do so. Continue reading