How to subdomains on Apache with mod_rewrite

Because I like to play with a lot of projects and code, I create subdomains for 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

Recursively chmod only directories or files

Ever come across the problem of needing to chmod a directory and its many, many, sub-directories, but you don’t want to touch any of the files? Maybe it’s the exact opposite, or you need to recursively change the permissions on only files with a specific extension. Well I had a similar problem with my web server settings. Continue reading